Agent<'Msg> Type
Represents an agent that processes messages asynchronously using the TPL Dataflow. See also AgentReplyChannel.
Instance members
| Instance member |
Description
|
Full Usage:
this.Post
Parameters:
'Msg
|
Posts a message to the agent.
|
Full Usage:
this.PostAndReply
Parameters:
CancellationTokenSource -> AgentReplyChannel<'a> -> 'Msg
Returns: 'a
|
Posts a message and returns a reply from the agent.
|
Gets the task associated with this agent.
|
Static members
| Static member |
Description
|
Full Usage:
Agent.Start(taskFn, token)
Parameters:
IAgentMessageReceivable<'Msg> -> unit
token : CancellationToken
Returns: Agent<'Msg>
|
Starts a new agent with a given task function and a cancellation token.
|
B2R2