| SwitchSwitchOff Method (Action) |
Executes the provided action if the lock is on. This is done under a lock so be _very_ careful with longrunning/blocking operations in it.
Only executes the action if the switch is on, and switches it off immediately after obtaining the lock.
Will switch it back on if the provided action throws an exception.
Namespace:
Akka.Util
Assembly:
Akka (in Akka.dll) Version: 1.2.3.129 (1.2.3.129)
Syntax public bool SwitchOff(
Action action
)
member SwitchOff :
action : Action -> bool
Parameters
- action
- Type: SystemAction
TBD
Return Value
Type:
BooleanReturns
true if the switch was switched off
See Also