Table of Contents
- Getting Started
- EO.Pdf
- EO.Web
- EO.WebBrowser
- EO.Wpf
- Common Topics
- Reference
- .NET API Reference
- EO.Base
- EO.Base
- Classes
- BaseException Class
- BaseObject Class
- BaseObjectCollection<T> Class
- BaseObjectCollectionWrapper<T,T> Class
- ChildProcessOutOfMemoryException Class
- CrashDataEventArgs Class
- DiagnosticTools Class
- ExceptionEventArgs Class
- ProxyInfo Class
- Runtime Class
- ThreadRunnerBase Class
- WaitableTask Class
- WaitableTask Class
- WaitableTask Members
- WaitableTask Constructor
- Properties
- Methods
- Methods
- GetDoneEvent Method
- OnDone Method
- SetCanceled Method
- SetException Method
- SetResult Method
- WaitAll Method
- WaitAny Method
- WaitOne Method
- Enumerations
- Delegates
- EO.Base.UI
- EO.Extensions
- EO.Pdf
- EO.Pdf.Acm
- EO.Pdf.Contents
- EO.Pdf.Drawing
- EO.Pdf.Mvc
- EO.Web
- EO.WebBrowser
- EO.WebBrowser.DOM
- EO.WebEngine
- EO.WinForm
- EO.Wpf
- EO.Wpf.Gauge
- EO.Wpf.Gauge.Shapes
- EO.Wpf.Primitives
- EO.Wpf.Themes.Aero
- EO.Wpf.Themes.Classic
- EO.Wpf.Themes.Luna
- EO.Wpf.Themes.Metro
- EO.Wpf.Themes.Royale
- EO.Base
- JavaScript API Reference
- .NET API Reference
WaitableTask.GetDoneEvent Method () |
Returns a WaitHandle object that will be signaled when the task completes.
Syntax
public WaitHandle GetDoneEvent();
Remarks
This method returns a WaitHandle object that can be waited on for the task to complete. However you should only wait on the returned WaitHandle from a worker thread. Waiting on the handle from the UI thread will stop the message flow thus potentially causing a deadlock. For this reason, this method raises an exception if called from the UI thread. To avoid this exception, you can call GetDoneEvent and pass false to the checkThread argument.
See Also