API ReferenceSandbox
public sealed struct Sandbox.TaskSource
Provides a way for us to cancel tasks after common async shit is executed.
Methods
Showing 33 methods
public static Sandbox.TaskSource Create(System.Threading.CancellationToken token = null)
Parameters
token: Default: null
public static System.Threading.CancellationTokenSource CreateLinkedTokenSource()
Create a token source, which will also be cancelled when sessions end
public System.Threading.Tasks.Task FixedUpdate()
Wait until the next fixed update
public System.Threading.Tasks.Task Frame()
Wait until the start of the next frame
public System.Threading.Tasks.Task FrameEnd()
Wait until the end of the frame
public System.Threading.Tasks.Task FromCanceled(System.Threading.CancellationToken token)
public System.Threading.Tasks.Task FromException(System.Exception e)
public System.Threading.Tasks.Task`1<T> FromResult(T t)
public Sandbox.Tasks.SyncTask MainThread()
Continues on the main thread.
public void WaitAll(System.Threading.Tasks.Task[] tasks)
public void WaitAny(System.Threading.Tasks.Task[] tasks)
public Sandbox.Tasks.SyncTask WorkerThread()
Continues on a worker thread.
public System.Threading.Tasks.Task Yield()
No results match this filter.
Properties
Showing 2 properties
public System.Threading.Tasks.Task Sandbox.TaskSource.CompletedTask { get; set; }
public bool Sandbox.TaskSource.IsValid { get; set; }
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.TaskSource |