ScriptEventArgsAwaitMe Method |
Notifies the event raiser to await the event handler before proceeding execution.
Namespace:
RRAutoLib.Scripting
Assembly:
RRAutoLib (in RRAutoLib.dll) Version: 4.0.8678.28884
Syntax
Remarks
By default, event handlers execute in a fire and forget fashion which is the most common use case. But in some scenarios the handler may want to instruct
the event raiser to wait for the handler's execution. In such a case, this hint should be set before the first
Await is encountered in the
handler. If no
Await is used in the event handler this hint is superfluous and will not be observed.
A use case might be when needing to set the
Cancel hint, in the handler, after an
Await.
See Also