You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If there was an exception thrown by the worker delegate, the exception is passed to the completion callback.
</p>
<p>
The completion callback will be called on the thread on which the async worker was started if this thread supports synchronization (UI thread do support synchronization).
Otherwise, it will be called on the worker thread.
</p>
<h3>Failing Operation with no Completion Handler</h3>
<p>
If the operation throws an exception and there is no completion handler set then the global handler for unhandled exceptions is notified:
AsyncWorker asyncWorker = new AsyncWorker(worker);
asyncWorker.RunWorkerAsync();
]]></script>
<h3>Failing Operation with Completion Handler</h3>
<p>
If the operation throws an exception and there is a completion handler set then the completion handler is responsible to handle the exception. The global handler for unhandled exceptions will not be notified: