Switch..::..WhileOn Method

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

Syntax


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

Parameters

action
Type: Action