public class Agent<State>
| Constructor and Description |
|---|
Agent(State state) |
| Modifier and Type | Method and Description |
|---|---|
<Result> Result |
fetch(kotlin.jvm.functions.Function1<? super State,? extends Result> closure) |
<Result> Result |
fetchAndUpdate(kotlin.jvm.functions.Function1<? super State,? extends kotlin.Pair<? extends State,? extends Result>> closure) |
void |
update(AgentConcurrencyType type,
kotlin.jvm.functions.Function1<? super State,? extends State> closure) |
public <Result> Result fetch(kotlin.jvm.functions.Function1<? super State,? extends Result> closure)
public void update(AgentConcurrencyType type, kotlin.jvm.functions.Function1<? super State,? extends State> closure)
public <Result> Result fetchAndUpdate(kotlin.jvm.functions.Function1<? super State,? extends kotlin.Pair<? extends State,? extends Result>> closure)