Click or drag to resize
ActorSystemAwaitTermination Method (TimeSpan, CancellationToken)
Block current thread until the system has been shutdown, or the specified timeout has elapsed, or the cancellationToken was canceled. This will block until after all on termination callbacks have been run.

Returns true if the system was shutdown during the specified time; false if it timed out, or the cancellationToken was canceled.

Namespace: Akka.Actor
Assembly: Akka (in Akka.dll) Version: 0.8.0.0 (0.8.0.0)
Syntax
public abstract bool AwaitTermination(
	TimeSpan timeout,
	CancellationToken cancellationToken
)

Parameters

timeout
Type: SystemTimeSpan
The timeout.
cancellationToken
Type: System.ThreadingCancellationToken
A cancellation token that cancels the wait operation.

Return Value

Type: Boolean
Returns true if the system was shutdown during the specified time; false if it timed out, or the cancellationToken was canceled.
See Also