Click or drag to resize
YieldAwaitableYieldAwaiter Structure
This API is preliminary and subject to change.
Provides an awaiter that switches into a target environment.

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

The YieldAwaitableYieldAwaiter 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 operation.
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
Posts the continuation back to the current context.
Public methodToString
Returns the fully qualified type name of this instance.
(Inherited from ValueType.)
Public methodUnsafeOnCompleted
Posts the continuation back to the current context.
Top
Properties
  NameDescription
Public propertyIsCompleted
Gets a value indicating whether a yield is not required.
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