IDispatcherMessageLoopInvokeIfRequiredT(FuncT) Method |
Invokes the specified callback, waits for its completion, and returns the result.
If the current thread is the thread running the message loop, executes the callback
directly without pumping the message loop.
Namespace: Altaxo.Main.ServicesAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3572.0 (4.8.3572.0)
SyntaxT InvokeIfRequired<T>(
Func<T> callback
)
Parameters
- callback FuncT
- The callback to execute.
Type Parameters
- T
- The type of the callback result.
Return Value
TThe callback result.
See Also