Class ChannelMicroThreadAwaiter<T>
- Namespace
- Stride.Core.MicroThreading
- Assembly
- Stride.Core.MicroThreading.dll
public class ChannelMicroThreadAwaiter<T> : ICriticalNotifyCompletion, INotifyCompletion
Type Parameters
T
- Inheritance
-
ChannelMicroThreadAwaiter<T>
- Implements
Constructors
ChannelMicroThreadAwaiter(MicroThread)
public ChannelMicroThreadAwaiter(MicroThread microThread)
Parameters
microThread
MicroThread
Properties
IsCompleted
public bool IsCompleted { get; set; }
Property Value
Methods
GetAwaiter()
public ChannelMicroThreadAwaiter<T> GetAwaiter()
Returns
GetResult()
public T GetResult()
Returns
- T
New(MicroThread)
public static ChannelMicroThreadAwaiter<T> New(MicroThread microThread)
Parameters
microThread
MicroThread
Returns
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).
UnsafeOnCompleted(Action)
Schedules the continuation action that's invoked when the instance completes.
public void UnsafeOnCompleted(Action continuation)
Parameters
continuation
ActionThe action to invoke when the operation completes.
Exceptions
- ArgumentNullException
The
continuation
argument is null (Nothing in Visual Basic).