Struct MicroThreadYieldAwaiter
- Namespace
- Stride.Core.MicroThreading
- Assembly
- Stride.Core.MicroThreading.dll
public struct MicroThreadYieldAwaiter : INotifyCompletion
- Implements
- Inherited Members
Constructors
MicroThreadYieldAwaiter(MicroThread)
public MicroThreadYieldAwaiter(MicroThread microThread)
Parameters
microThread
MicroThread
Properties
IsCompleted
public bool IsCompleted { get; }
Property Value
Methods
GetAwaiter()
public MicroThreadYieldAwaiter GetAwaiter()
Returns
GetResult()
public void GetResult()
OnCompleted(Action)
Schedules the continuation action that's invoked when the instance completes.
public void OnCompleted(Action continuation)
Parameters
continuation
ActionThe action to invoke when the operation completes.
Exceptions
- ArgumentNullException
The
continuation
argument is null (Nothing in Visual Basic).