Executes the provided action and returns if the action was executed or not, if the switch is off, waiting for any pending changes to happen before (locking)
Be careful of longrunning or blocking within the provided action as it can lead to deadlocks or bad performance
Namespace: Akka.UtilAssembly: Akka (in Akka.dll) Version: 0.8.0.0 (0.8.0.0)
Syntaxpublic bool WhileOff(
Action action
)
Public Function WhileOff (
action As Action
) As Boolean
public:
bool WhileOff(
Action^ action
)
member WhileOff :
action : Action -> bool
Parameters
- action
- Type: SystemAction
[Missing <param name="action"/> documentation for "M:Akka.Util.Switch.WhileOff(System.Action)"]
Return Value
Type:
Boolean[Missing <returns> documentation for "M:Akka.Util.Switch.WhileOff(System.Action)"]
See Also