This API is preliminary and subject to change.
Creates an awaitable task that asynchronously yields back to the current context when awaited.
Namespace: Rackspace.ThreadingAssembly: Rackspace.Threading (in Rackspace.Threading.dll) Version: 2.1.0-beta1
Syntax
[CLSCompliantAttribute(true)]
public static YieldAwaitable Yield()
<CLSCompliantAttribute(true)>
Public Shared Function Yield As YieldAwaitable
public:
[CLSCompliantAttribute(true)]
static YieldAwaitable Yield()
[<CLSCompliantAttribute(true)>]
static member Yield : unit -> YieldAwaitable
Return Value
Type:
YieldAwaitable
A context that, when awaited, will asynchronously transition back into the current context at the time of
the await. If the current
SynchronizationContext is non-
, it is treated
as the current context. Otherwise, the task scheduler that is associated with the currently executing task
is treated as the current context.
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
Threading Library
Supported in: 2.1
See Also