Switch..::..WhileOff Method

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.Util
Assembly:  Akka (in Akka.dll)

Syntax


public bool WhileOff(
	Action action
)
Public Function WhileOff ( _
	action As Action _
) As Boolean
public:
bool^ WhileOff(
	Action^ action
)

Parameters

action
Type: Action