IAsyncDisposableDisposeAsync Method |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Namespace: Rackspace.ThreadingAssembly: Rackspace.Threading (in Rackspace.Threading.dll) Version: 1.1.0.0
Syntax
Function DisposeAsync As Task
abstract DisposeAsync : unit -> Task
Return Value
Type:
TaskA
Task representing the asynchronous operation.
Remarks
This method should perform the same operation as
Dispose, with the following
key differences.
Notes to Implementers |
To prevent finalization of the object while an asynchronous dispose operation is ongoing,
the Task returned by this method should retain a reference to the object
until the operation is complete.
|
Version Information
.NET for Windows Store apps
Supported in: Windows 8
.NET Framework
Supported in: 4.5, 4.0, 3.5
Portable Class Library
Supported in: Portable Class Library (Legacy), Portable Class Library
Rackspace Threading Library
Supported in: 1.1, 1.0
See Also