MBrace local cluster simulator


TopicQueue<'Topic, 'T>

Namespace: MBrace.Thespian.Runtime

Immutable queue implementation with messages indexable by topic

Record Fields

Record FieldDescription
GlobalQueue
Signature: ImmutableQueue<'T>
TopicQueues
Signature: Map<'Topic,ImmutableQueue<'T>>

Instance members

Instance memberDescription
Cleanup(cleanup)
Signature: (cleanup:('Topic -> bool)) -> 'T [] * TopicQueue<'Topic,'T>

Perform cleanup of the queue, by moving all elements from cleaned up topics to the global queue.

Enqueue(t, topic)
Signature: (t:'T * topic:'Topic option) -> TopicQueue<'Topic,'T>

Enqueue a new item to queue, optionally with a specified topic.

TryDequeue(topic)
Signature: (topic:'Topic option) -> ('T * TopicQueue<'Topic,'T>) option

Dequeue a message from queue, optionally declaring a topic.

Static members

Static memberDescription
Empty
Signature: TopicQueue<'Topic,'T>

Creates an empty queue

CompiledName: get_Empty

Fork me on GitHub