SpicyPixel.Threading.Tasks.FiberTaskExtensions Class Reference

Extends the Task and TaskFactory classes with methods to support coroutines. More...

+ Collaboration diagram for SpicyPixel.Threading.Tasks.FiberTaskExtensions:

Static Public Member Functions

static Task ContinueWith (this Task task, IEnumerator coroutine)
 Continues the task with a coroutine. More...
 
static Task ContinueWith (this Task task, IEnumerator coroutine, TaskContinuationOptions continuationOptions)
 Continues the task with a coroutine. More...
 
static Task ContinueWith (this Task task, IEnumerator coroutine, CancellationToken cancellationToken)
 Continues the task with a coroutine. More...
 
static Task ContinueWith (this Task task, IEnumerator coroutine, TaskScheduler scheduler)
 Continues the task with a coroutine. More...
 
static Task ContinueWith (this Task task, IEnumerator coroutine, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)
 Continues the task with a coroutine. More...
 
static Task ContinueWith (this Task task, FiberInstruction instruction)
 Continues the task with a coroutine. More...
 
static Task ContinueWith (this Task task, FiberInstruction instruction, TaskContinuationOptions continuationOptions)
 Continues the task with a coroutine. More...
 
static Task ContinueWith (this Task task, FiberInstruction instruction, CancellationToken cancellationToken)
 Continues the task with a coroutine. More...
 
static Task ContinueWith (this Task task, FiberInstruction instruction, TaskScheduler scheduler)
 Continues the task with a coroutine. More...
 
static Task ContinueWith (this Task task, FiberInstruction instruction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)
 Continues the task with a coroutine. More...
 
static Task StartNew (this TaskFactory taskFactory, IEnumerator coroutine)
 Creates a new task and starts executing it. More...
 
static Task StartNew (this TaskFactory taskFactory, IEnumerator coroutine, CancellationToken cancellationToken)
 Creates a new task and starts executing it. More...
 
static Task StartNew (this TaskFactory taskFactory, IEnumerator coroutine, TaskCreationOptions creationOptions)
 Creates a new task and starts executing it. More...
 
static Task StartNew (this TaskFactory taskFactory, IEnumerator coroutine, CancellationToken cancellationToken, TaskCreationOptions creationOptions, TaskScheduler scheduler)
 Creates a new task and starts executing it. More...
 
static Task StartNew (this TaskFactory taskFactory, FiberInstruction instruction)
 Creates a new task and starts executing it. More...
 
static Task StartNew (this TaskFactory taskFactory, FiberInstruction instruction, CancellationToken cancellationToken)
 Creates a new task and starts executing it. More...
 
static Task StartNew (this TaskFactory taskFactory, FiberInstruction instruction, TaskCreationOptions creationOptions)
 Creates a new task and starts executing it. More...
 
static Task StartNew (this TaskFactory taskFactory, FiberInstruction instruction, CancellationToken cancellationToken, TaskCreationOptions creationOptions, TaskScheduler scheduler)
 Creates a new task and starts executing it. More...
 

Detailed Description

Extends the Task and TaskFactory classes with methods to support coroutines.

Definition at line 39 of file FiberTaskExtensions.cs.

Member Function Documentation

static Task SpicyPixel.Threading.Tasks.FiberTaskExtensions.ContinueWith ( this Task  task,
IEnumerator  coroutine 
)
static

Continues the task with a coroutine.

Returns
The continued task.
Parameters
taskTask to continue.
coroutineThe coroutine to continue with.

Definition at line 53 of file FiberTaskExtensions.cs.

static Task SpicyPixel.Threading.Tasks.FiberTaskExtensions.ContinueWith ( this Task  task,
IEnumerator  coroutine,
TaskContinuationOptions  continuationOptions 
)
static

Continues the task with a coroutine.

Returns
The continued task.
Parameters
taskTask to continue.
coroutineThe coroutine to continue with.
continuationOptionsContinuation options.

Definition at line 73 of file FiberTaskExtensions.cs.

static Task SpicyPixel.Threading.Tasks.FiberTaskExtensions.ContinueWith ( this Task  task,
IEnumerator  coroutine,
CancellationToken  cancellationToken 
)
static

Continues the task with a coroutine.

Returns
The continued task.
Parameters
taskTask to continue.
coroutineThe coroutine to continue with.
cancellationTokenCancellation token.

Definition at line 93 of file FiberTaskExtensions.cs.

static Task SpicyPixel.Threading.Tasks.FiberTaskExtensions.ContinueWith ( this Task  task,
IEnumerator  coroutine,
TaskScheduler  scheduler 
)
static

Continues the task with a coroutine.

Returns
The continued task.
Parameters
taskTask to continue.
coroutineThe coroutine to continue with.
schedulerScheduler.

Definition at line 113 of file FiberTaskExtensions.cs.

static Task SpicyPixel.Threading.Tasks.FiberTaskExtensions.ContinueWith ( this Task  task,
IEnumerator  coroutine,
CancellationToken  cancellationToken,
TaskContinuationOptions  continuationOptions,
TaskScheduler  scheduler 
)
static

Continues the task with a coroutine.

Returns
The continued task.
Parameters
taskTask to continue.
coroutineThe coroutine to continue with.
cancellationTokenCancellation token.
continuationOptionsContinuation options.
schedulerScheduler to use when scheduling the task.

Definition at line 139 of file FiberTaskExtensions.cs.

static Task SpicyPixel.Threading.Tasks.FiberTaskExtensions.ContinueWith ( this Task  task,
FiberInstruction  instruction 
)
static

Continues the task with a coroutine.

Returns
The continued task.
Parameters
taskTask to continue.
instructionThe instruction to continue with.

Definition at line 180 of file FiberTaskExtensions.cs.

static Task SpicyPixel.Threading.Tasks.FiberTaskExtensions.ContinueWith ( this Task  task,
FiberInstruction  instruction,
TaskContinuationOptions  continuationOptions 
)
static

Continues the task with a coroutine.

Returns
The continued task.
Parameters
taskTask to continue.
instructionThe instruction to continue with.
continuationOptionsContinuation options.

Definition at line 200 of file FiberTaskExtensions.cs.

static Task SpicyPixel.Threading.Tasks.FiberTaskExtensions.ContinueWith ( this Task  task,
FiberInstruction  instruction,
CancellationToken  cancellationToken 
)
static

Continues the task with a coroutine.

Returns
The continued task.
Parameters
taskTask to continue.
instructionThe instruction to continue with.
cancellationTokenCancellation token.

Definition at line 220 of file FiberTaskExtensions.cs.

static Task SpicyPixel.Threading.Tasks.FiberTaskExtensions.ContinueWith ( this Task  task,
FiberInstruction  instruction,
TaskScheduler  scheduler 
)
static

Continues the task with a coroutine.

Returns
The continued task.
Parameters
taskTask to continue.
instructionThe instruction to continue with.
schedulerScheduler.

Definition at line 240 of file FiberTaskExtensions.cs.

static Task SpicyPixel.Threading.Tasks.FiberTaskExtensions.ContinueWith ( this Task  task,
FiberInstruction  instruction,
CancellationToken  cancellationToken,
TaskContinuationOptions  continuationOptions,
TaskScheduler  scheduler 
)
static

Continues the task with a coroutine.

Returns
The continued task.
Parameters
taskTask to continue.
instructionThe instruction to continue with.
cancellationTokenCancellation token.
continuationOptionsContinuation options.
schedulerScheduler to use when scheduling the task.

Definition at line 266 of file FiberTaskExtensions.cs.

static Task SpicyPixel.Threading.Tasks.FiberTaskExtensions.StartNew ( this TaskFactory  taskFactory,
IEnumerator  coroutine 
)
static

Creates a new task and starts executing it.

Returns
The new executing task.
Parameters
taskFactoryTask factory to start with.
coroutineThe coroutine to start.

Definition at line 307 of file FiberTaskExtensions.cs.

static Task SpicyPixel.Threading.Tasks.FiberTaskExtensions.StartNew ( this TaskFactory  taskFactory,
IEnumerator  coroutine,
CancellationToken  cancellationToken 
)
static

Creates a new task and starts executing it.

Returns
The new executing task.
Parameters
taskFactoryTask factory to start with.
coroutineThe coroutine to start.
cancellationTokenCancellation token.

Definition at line 327 of file FiberTaskExtensions.cs.

static Task SpicyPixel.Threading.Tasks.FiberTaskExtensions.StartNew ( this TaskFactory  taskFactory,
IEnumerator  coroutine,
TaskCreationOptions  creationOptions 
)
static

Creates a new task and starts executing it.

Returns
The new executing task.
Parameters
taskFactoryTask factory to start with.
coroutineThe coroutine to start.
creationOptionsCreation options.

Definition at line 347 of file FiberTaskExtensions.cs.

static Task SpicyPixel.Threading.Tasks.FiberTaskExtensions.StartNew ( this TaskFactory  taskFactory,
IEnumerator  coroutine,
CancellationToken  cancellationToken,
TaskCreationOptions  creationOptions,
TaskScheduler  scheduler 
)
static

Creates a new task and starts executing it.

Returns
The new executing task.
Parameters
taskFactoryTask factory to start with.
coroutineThe coroutine to start.
cancellationTokenCancellation token.
creationOptionsCreation options.
schedulerScheduler.

Definition at line 373 of file FiberTaskExtensions.cs.

static Task SpicyPixel.Threading.Tasks.FiberTaskExtensions.StartNew ( this TaskFactory  taskFactory,
FiberInstruction  instruction 
)
static

Creates a new task and starts executing it.

Returns
The new executing task.
Parameters
taskFactoryTask factory to start with.
instructionThe instruction to start.

Definition at line 392 of file FiberTaskExtensions.cs.

static Task SpicyPixel.Threading.Tasks.FiberTaskExtensions.StartNew ( this TaskFactory  taskFactory,
FiberInstruction  instruction,
CancellationToken  cancellationToken 
)
static

Creates a new task and starts executing it.

Returns
The new executing task.
Parameters
taskFactoryTask factory to start with.
instructionThe instruction to start.
cancellationTokenCancellation token.

Definition at line 412 of file FiberTaskExtensions.cs.

static Task SpicyPixel.Threading.Tasks.FiberTaskExtensions.StartNew ( this TaskFactory  taskFactory,
FiberInstruction  instruction,
TaskCreationOptions  creationOptions 
)
static

Creates a new task and starts executing it.

Returns
The new executing task.
Parameters
taskFactoryTask factory to start with.
instructionThe instruction to start.
creationOptionsCreation options.

Definition at line 432 of file FiberTaskExtensions.cs.

static Task SpicyPixel.Threading.Tasks.FiberTaskExtensions.StartNew ( this TaskFactory  taskFactory,
FiberInstruction  instruction,
CancellationToken  cancellationToken,
TaskCreationOptions  creationOptions,
TaskScheduler  scheduler 
)
static

Creates a new task and starts executing it.

Returns
The new executing task.
Parameters
taskFactoryTask factory to start with.
instructionThe instruction to start.
cancellationTokenCancellation token.
creationOptionsCreation options.
schedulerScheduler.

Definition at line 458 of file FiberTaskExtensions.cs.


The documentation for this class was generated from the following file: