Class SwitchToAwaiter
- Namespace
- Stride.Core.MicroThreading
- Assembly
- Stride.Core.MicroThreading.dll
public class SwitchToAwaiter : INotifyCompletion
- Inheritance
-
SwitchToAwaiter
- Implements
Constructors
SwitchToAwaiter(Scheduler)
public SwitchToAwaiter(Scheduler scheduler)
Parameters
schedulerScheduler
Properties
IsCompleted
public bool IsCompleted { get; }
Property Value
Methods
GetAwaiter()
public SwitchToAwaiter GetAwaiter()
Returns
GetResult()
public IDisposable GetResult()
Returns
OnCompleted(Action)
Schedules the continuation action that's invoked when the instance completes.
public void OnCompleted(Action continuation)
Parameters
continuationActionThe action to invoke when the operation completes.
Exceptions
- ArgumentNullException
The
continuationargument is null (Nothing in Visual Basic).