Struct PauseToken
A structure that represents a token used to temporarily pause task execution.
Inherited Members
Namespace: TheXDS.MCART.Types
Assembly: MCART.dll
Syntax
public readonly struct PauseToken
Properties
| Edit this page View SourceIsPaused
Gets a value indicating whether this PauseToken is in a paused state.
Declaration
public bool IsPaused { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
| Edit this page View SourceWaitWhilePausedAsync()
Begins the pause state, waiting for the source PauseTokenSource of this instance to exit the pause state.
Declaration
public Task WaitWhilePausedAsync()
Returns
Type | Description |
---|---|
Task | A Task object that will complete when this token is no longer paused. |