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