BlockingQueueAgent<'T> Type

Agent-based implementation of producer/consumer problem

Constructors

Constructor Description

BlockingQueueAgent()

Full Usage: BlockingQueueAgent()

Returns: BlockingQueueAgent<'T>
Returns: BlockingQueueAgent<'T>

Instance members

Instance member Description

this.AsyncAdd

Full Usage: this.AsyncAdd

Parameters:
    v : 'T

Returns: Async<unit>

Asynchronously adds item to the queue. If the queue is full, it blocks until some items are removed.

v : 'T
Returns: Async<unit>

this.AsyncGet

Full Usage: this.AsyncGet

Returns: Async<'T>

Asynchronously gets item from the queue. If the queue is empty, it blocks until some items are added.

Returns: Async<'T>