Search Results for

    Show / Hide Table of Contents

    Interface IValveSwitch

    Pause/resume a Flow

    Namespace: Akka.Streams.Dsl
    Assembly: Akka.Streams.dll
    Syntax
    public interface IValveSwitch

    Methods

    | Edit this page View Source

    Flip(SwitchMode)

    Change the state of the valve

    Declaration
    Task<bool> Flip(SwitchMode mode)
    Parameters
    Type Name Description
    SwitchMode mode

    expected mode to switch on

    Returns
    Type Description
    Task<bool>

    A task that completes with true if the mode did change and false if it already was in the requested mode

    | Edit this page View Source

    GetMode()

    Obtain the state of the valve

    Declaration
    Task<SwitchMode> GetMode()
    Returns
    Type Description
    Task<SwitchMode>

    A task that completes with SwitchMode to indicate the current state of the valve

    Extension Methods

    ObjectExtensions.IsDefaultForType<T>(T)
    ObjectExtensions.AsOption<T>(T)
    Extensions.AsInstanceOf<T>(object)
    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