Search Results for

    Show / Hide Table of Contents

    Class WatchAsyncSupport

    WatchAsync extensions

    Inheritance
    object
    WatchAsyncSupport
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Akka.Actor
    Assembly: Akka.dll
    Syntax
    public static class WatchAsyncSupport

    Methods

    | Edit this page View Source

    WatchAsync(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>

    true if the target was terminated, false otherwise.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if we attempt to watch a

    In this article
    • githubEdit this page
    • View Source
    Back to top
    Contribute
    • Project Chat
    • Discussion Forum
    • Source Code
    Support
    • Akka.NET Support Plans
    • Akka.NET Observability Tools
    • Akka.NET Training & Consulting
    Maintained By
    • Petabridge - The Akka.NET Company
    • Learn Akka.NET