LightningThreadStateAddActionForMainThread Method |
Add a main thread action
Namespace:
DigitalRuby.ThunderAndLightning
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax public bool AddActionForMainThread(
Action action,
bool waitForAction = false
)
Public Function AddActionForMainThread (
action As Action,
Optional waitForAction As Boolean = false
) As Boolean
public:
bool AddActionForMainThread(
Action^ action,
bool waitForAction = false
)
member AddActionForMainThread :
action : Action *
?waitForAction : bool
(* Defaults:
let _waitForAction = defaultArg waitForAction false
*)
-> bool
Parameters
- action
- Type: SystemAction
Action - waitForAction (Optional)
- Type: SystemBoolean
True to wait for completion, false if not
Return Value
Type:
BooleanTrue if action added, false if in process of terminating the thread
See Also