Click or drag to resize
TaskAwaiter Structure
This API is preliminary and subject to change.
Provides an awaiter for awaiting a Task.

Namespace: Microsoft.Runtime.CompilerServices
Assembly: Rackspace.Threading (in Rackspace.Threading.dll) Version: 2.1.0-beta1
Syntax
public struct TaskAwaiter : ICriticalNotifyCompletion, 
	INotifyCompletion

The TaskAwaiter type exposes the following members.

Methods
  NameDescription
Public methodEquals
Indicates whether this instance and a specified object are equal.
(Inherited from ValueType.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Returns the hash code for this instance.
(Inherited from ValueType.)
Public methodGetResult
Ends the await on the completed Task.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodOnCompleted
Schedules the continuation onto the Task associated with this TaskAwaiter.
Public methodToString
Returns the fully qualified type name of this instance.
(Inherited from ValueType.)
Public methodUnsafeOnCompleted
Schedules the continuation onto the Task associated with this TaskAwaiter.
Top
Properties
  NameDescription
Public propertyIsCompleted
Gets a value indicating whether the task being awaited is completed.
Top
Remarks
This type is intended for compiler use only.
Version Information

.NET for Windows Store apps

Supported in: Windows 8

.NET Framework

Supported in: 4.5, 3.5

Portable Class Library

Supported in: Portable Class Library

Threading Library

Supported in: 2.1
See Also