Class WatchAsyncSupport
WatchAsync extensions
Inherited Members
Namespace: Akka.Actor
Assembly: Akka.dll
Syntax
public static class WatchAsyncSupport
Methods
| Improve this Doc View SourceWatchAsync(IActorRef, CancellationToken)
WatchAsync allows non-Akka.NET components to subscribe to DeathWatch notifications for a given IActorRef
Declaration
public static async Task<bool> WatchAsync(this IActorRef target, CancellationToken token = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
IActorRef | target | The actor to watch. |
CancellationToken | token | Optional - a cancellation token. |
Returns
Type | Description |
---|---|
Task<Boolean> |
|
Exceptions
Type | Condition |
---|---|
InvalidOperationException | Thrown if we attempt to watch a |