Header menu logo B2R2

Agent<'Msg> Type

The agent for processing messages based on the TPL Dataflow.

Instance members

Instance member Description

this.Post

Full Usage: this.Post

Parameters:
    msg : 'Msg

Post a message to the agent.

msg : 'Msg

this.PostAndReply

Full Usage: this.PostAndReply

Parameters:
Returns: 'a

Post a message and get a reply from the agent.

callback : CancellationTokenSource -> AgentReplyChannel<'a> -> 'Msg
Returns: 'a

this.Task

Full Usage: this.Task

Returns: Task

Agent's task.

Returns: Task

Static members

Static member Description

Agent.Start(taskFn, token)

Full Usage: Agent.Start(taskFn, token)

Parameters:
Returns: Agent<'Msg>

Start a new agent with a given task function and a cancellation token.

taskFn : IAgentMessageReceivable<'Msg> -> unit
token : CancellationToken
Returns: Agent<'Msg>

Type something to start searching.