Click or drag to resize
Akka.NETBlockingQueueTTryEnqueue Method
Tries to add the specified item to the end of the queue within the specified time period. A token can be provided to cancel the operation if needed.

Namespace:  Akka.TestKit.Internal
Assembly:  Akka.TestKit (in Akka.TestKit.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax
public bool TryEnqueue(
	T item,
	int millisecondsTimeout,
	CancellationToken cancellationToken
)

Parameters

item
Type: T
The item to add to the queue.
millisecondsTimeout
Type: SystemInt32
The number of milliseconds to wait for the add to complete.
cancellationToken
Type: System.ThreadingCancellationToken
The cancellation token that can be used to cancel the operation.

Return Value

Type: Boolean
true if the add completed within the specified timeout; otherwise, false.
See Also