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.ActorAssembly: Akka (in Akka.dll) Version: 0.8.0.0 (0.8.0.0)
Syntaxpublic abstract bool AwaitTermination(
TimeSpan timeout,
CancellationToken cancellationToken
)
Public MustOverride Function AwaitTermination (
timeout As TimeSpan,
cancellationToken As CancellationToken
) As Boolean
public:
virtual bool AwaitTermination(
TimeSpan timeout,
CancellationToken cancellationToken
) abstract
abstract AwaitTermination :
timeout : TimeSpan *
cancellationToken : CancellationToken -> bool
Parameters
- timeout
- Type: SystemTimeSpan
The timeout. - cancellationToken
- Type: System.ThreadingCancellationToken
A cancellation token that cancels the wait operation.
Return Value
Type:
BooleanReturns
true if the system was shutdown during the specified time;
false if it timed out, or the cancellationToken was canceled.
See Also