| Member | Description |
member
AsyncPostAndReply : buildMessage:(AsyncReplyChannel<'reply> -> 'msg) *
?timeout:int * ?exitContext:bool -> Async<'reply> |
Post a message to the message queue of the MailboxProcessor and await a reply on the channel asynchronously.
The message is produced by a single call to the first function which must build a message
containing the reply channel. The receiving MailboxProcessor must process this message and
invoke the Reply method on the reply channel precisly once.
|
member
AsyncTryPostAndReply : buildMessage:(AsyncReplyChannel<'reply> -> 'msg) *
?timeout:int * ?exitContext:bool ->
Async<'reply option> |
Like PostAndReplyAsync, but return None if no reply within the timeout period.
|
member DefaultTimeout : int |
Raise a timeout exception if a message not received in this amount of time. Default infinite.
|
member DefaultTimeout : int with set |
Raise a timeout exception if a message not received in this amount of time. Default infinite.
|
member Post : message:'msg -> unit |
Post a message to the message queue of the MailboxProcessor, asynchronously
|
member
PostAndReply : buildMessage:(AsyncReplyChannel<'reply> -> 'msg) *
?timeout:int * ?exitContext:bool -> 'reply |
Post a message to the message queue of the MailboxProcessor and await a reply on the channel.
The message is produced by a single call to the first function which must build a message
containing the reply channel. The receiving MailboxProcessor must process this message and
invoke the Reply method on the reply channel precisly once.
|
member Receive : ?timeout:int -> Async<'msg> |
Return an asynchronous computation which will
consume the first message in arrival order. No thread
is blocked while waiting for further messages. Raise a TimeoutException
if the timeout is exceeded.
|
member
Scan : scanner:('msg -> Async<'res> option) * ?timeout:int ->
Async<'res> |
Return an asynchronous computation which will
look through messages in arrival order until 'scanner' returns a Some value. No thread
is blocked while waiting for further messages. Raise a TimeoutException
if the timeout is exceeded.
|
member Start : unit -> unit |
Start the MailboxProcessor
|
member
TryPostAndReply : buildMessage:(AsyncReplyChannel<'reply> -> 'msg) *
?timeout:int * ?exitContext:bool -> 'reply option |
Like PostAndReply, but return None if no reply within the timeout period.
|
member TryReceive : ?timeout:int -> Async<'msg option> |
Return an asynchronous computation which will
consume the first message in arrival order. No thread
is blocked while waiting for further messages. Return None
if the timeout is exceeded.
|
member
TryScan : scanner:('msg -> Async<'res> option) * ?timeout:int ->
Async<'res option> |
Return an asynchronous computation which will
look through messages in arrival order until 'scanner' returns a Some value. No thread
is blocked while waiting for further messages. Return None
if the timeout is exceeded.
|
member UnsafeMessageQueueContents : seq<'msg> | |