Executes the provided action and returns if the action was executed or not, if the switch is on, 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 WhileOn(
Action action
)
Public Function WhileOn (
action As Action
) As Boolean
public:
bool WhileOn(
Action^ action
)
member WhileOn :
action : Action -> bool
Parameters
- action
- Type: SystemAction
[Missing <param name="action"/> documentation for "M:Akka.Util.Switch.WhileOn(System.Action)"]
Return Value
Type:
Boolean[Missing <returns> documentation for "M:Akka.Util.Switch.WhileOn(System.Action)"]
See Also