Click or drag to resize
Akka.NETBlockingQueueTTryTake Method (T, Int32, CancellationToken)
Tries to remove the specified item from 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.129 (1.2.3.129)
Syntax
public bool TryTake(
	out T item,
	int millisecondsTimeout,
	CancellationToken cancellationToken
)

Parameters

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

Return Value

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