Mono Class Library: System.IAsyncResult Overview | MembersSystem.IAsyncResult.AsyncWaitHandle Property |
Gets a System.Threading.WaitHandle that can be used to block a thread until an asynchronous operation completes. [Edit]
|
A System.Threading.WaitHandle that is signaled when an asynchronous operation completes. [Edit]
Operation
The object returned by IAsyncResult.AsyncWaitHandle can be allocated in advance or on demand. However, once allocated it is required to be kept alive until the user calls a method that ends the asynchronous operation, such as System.IO.FileStream.EndRead(IAsyncResult). Only after the operation completes or is canceled, can the object be disposed of.
Note: WaitHandle supplies methods that support waiting for synchronization objects to become signaled, such as System.Threading.WaitHandle.WaitOne(int, bool) .This property is read-only.
Usage
Clients that wait for the operation to complete (as opposed to polling), use this property to obtain a synchronization object to wait on.
[Edit]
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0