Click or drag to resize
SwitchSwitchOn Method (Action)
Executes the provided action if the lock is off. This is done under a lock so be _very_ careful with longrunning/blocking operations in it. Only executes the action if the switch is off, and switches it on immediately after obtaining the lock. Will switch it back off if the provided action throws an exception.

Namespace: Akka.Util
Assembly: Akka (in Akka.dll) Version: 0.8.0.0 (0.8.0.0)
Syntax
public bool SwitchOn(
	Action action
)

Parameters

action
Type: SystemAction

[Missing <param name="action"/> documentation for "M:Akka.Util.Switch.SwitchOn(System.Action)"]

Return Value

Type: Boolean
Returns true if the switch was switched on
See Also