Interface IValveSwitch
Pause/resume a Flow
Namespace: Akka.Streams.Dsl
Assembly: Akka.Streams.dll
Syntax
public interface IValveSwitch
Methods
| Improve this Doc View SourceFlip(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<Boolean> | A task that completes with true if the mode did change and false if it already was in the requested mode |
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 |