# Sandbox.TaskSource

Provides a way for us to cancel tasks after common async shit is executed.

- Kind: struct
- Namespace: `Sandbox`
- Assembly: `Sandbox.Engine`
- Modifiers: sealed

## Properties

- [`CompletedTask`](/api/Sandbox.TaskSource/CompletedTask)
- [`IsValid`](/api/Sandbox.TaskSource/IsValid)

## Methods

- [`Create`](/api/Sandbox.TaskSource/Create)
- [`CreateLinkedTokenSource`](/api/Sandbox.TaskSource/CreateLinkedTokenSource): Create a token source, which will also be cancelled when sessions end
- [`Delay`](/api/Sandbox.TaskSource/Delay): A task that does nothing for given amount of time in milliseconds.
- [`DelayRealtime`](/api/Sandbox.TaskSource/DelayRealtime)
- [`DelayRealtimeSeconds`](/api/Sandbox.TaskSource/DelayRealtimeSeconds)
- [`DelaySeconds`](/api/Sandbox.TaskSource/DelaySeconds): A task that does nothing for given amount of time in seconds.
- [`FixedUpdate`](/api/Sandbox.TaskSource/FixedUpdate): Wait until the next fixed update
- [`Frame`](/api/Sandbox.TaskSource/Frame): Wait until the start of the next frame
- [`FrameEnd`](/api/Sandbox.TaskSource/FrameEnd): Wait until the end of the frame
- [`FromCanceled`](/api/Sandbox.TaskSource/FromCanceled)
- [`FromException`](/api/Sandbox.TaskSource/FromException)
- [`FromResult`](/api/Sandbox.TaskSource/FromResult)
- [`MainThread`](/api/Sandbox.TaskSource/MainThread): Continues on the main thread.
- [`RunInThreadAsync`](/api/Sandbox.TaskSource/RunInThreadAsync)
- [`WaitAll`](/api/Sandbox.TaskSource/WaitAll)
- [`WaitAny`](/api/Sandbox.TaskSource/WaitAny)
- [`WhenAll`](/api/Sandbox.TaskSource/WhenAll)
- [`WhenAny`](/api/Sandbox.TaskSource/WhenAny)
- [`WorkerThread`](/api/Sandbox.TaskSource/WorkerThread): Continues on a worker thread.
- [`Yield`](/api/Sandbox.TaskSource/Yield)
