C# Class SpicyPixel.Threading.Tasks.FiberTaskExtensions

Extends the Task and TaskFactory classes with methods to support coroutines.
显示文件 Open project: spicypixel/concurrency-kit-cs

Public Methods

Method Description
ContinueWith ( this task, FiberInstruction instruction ) : Task

Continues the task with a coroutine.

ContinueWith ( this task, FiberInstruction instruction, CancellationToken cancellationToken ) : Task

Continues the task with a coroutine.

ContinueWith ( this task, FiberInstruction instruction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler ) : Task

Continues the task with a coroutine.

ContinueWith ( this task, FiberInstruction instruction, TaskContinuationOptions continuationOptions ) : Task

Continues the task with a coroutine.

ContinueWith ( this task, FiberInstruction instruction, TaskScheduler scheduler ) : Task

Continues the task with a coroutine.

ContinueWith ( this task, IEnumerator coroutine ) : Task

Continues the task with a coroutine.

ContinueWith ( this task, IEnumerator coroutine, CancellationToken cancellationToken ) : Task

Continues the task with a coroutine.

ContinueWith ( this task, IEnumerator coroutine, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler ) : Task

Continues the task with a coroutine.

ContinueWith ( this task, IEnumerator coroutine, TaskContinuationOptions continuationOptions ) : Task

Continues the task with a coroutine.

ContinueWith ( this task, IEnumerator coroutine, TaskScheduler scheduler ) : Task

Continues the task with a coroutine.

StartNew ( this taskFactory, FiberInstruction instruction ) : Task

Creates a new task and starts executing it.

StartNew ( this taskFactory, FiberInstruction instruction, CancellationToken cancellationToken ) : Task

Creates a new task and starts executing it.

StartNew ( this taskFactory, FiberInstruction instruction, CancellationToken cancellationToken, TaskCreationOptions creationOptions, TaskScheduler scheduler ) : Task

Creates a new task and starts executing it.

StartNew ( this taskFactory, FiberInstruction instruction, TaskCreationOptions creationOptions ) : Task

Creates a new task and starts executing it.

StartNew ( this taskFactory, IEnumerator coroutine ) : Task

Creates a new task and starts executing it.

StartNew ( this taskFactory, IEnumerator coroutine, CancellationToken cancellationToken ) : Task

Creates a new task and starts executing it.

StartNew ( this taskFactory, IEnumerator coroutine, CancellationToken cancellationToken, TaskCreationOptions creationOptions, TaskScheduler scheduler ) : Task

Creates a new task and starts executing it.

StartNew ( this taskFactory, IEnumerator coroutine, TaskCreationOptions creationOptions ) : Task

Creates a new task and starts executing it.

Method Details

ContinueWith() public static method

Continues the task with a coroutine.
public static ContinueWith ( this task, FiberInstruction instruction ) : Task
task this /// Task to continue. ///
instruction SpicyPixel.Threading.FiberInstruction /// The instruction to continue with. ///
return Task

ContinueWith() public static method

Continues the task with a coroutine.
public static ContinueWith ( this task, FiberInstruction instruction, CancellationToken cancellationToken ) : Task
task this /// Task to continue. ///
instruction SpicyPixel.Threading.FiberInstruction /// The instruction to continue with. ///
cancellationToken System.Threading.CancellationToken /// Cancellation token. ///
return Task

ContinueWith() public static method

Continues the task with a coroutine.
public static ContinueWith ( this task, FiberInstruction instruction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler ) : Task
task this /// Task to continue. ///
instruction SpicyPixel.Threading.FiberInstruction /// The instruction to continue with. ///
cancellationToken System.Threading.CancellationToken /// Cancellation token. ///
continuationOptions TaskContinuationOptions /// Continuation options. ///
scheduler System.Threading.Tasks.TaskScheduler /// Scheduler to use when scheduling the task. ///
return Task

ContinueWith() public static method

Continues the task with a coroutine.
public static ContinueWith ( this task, FiberInstruction instruction, TaskContinuationOptions continuationOptions ) : Task
task this /// Task to continue. ///
instruction SpicyPixel.Threading.FiberInstruction /// The instruction to continue with. ///
continuationOptions TaskContinuationOptions /// Continuation options. ///
return Task

ContinueWith() public static method

Continues the task with a coroutine.
public static ContinueWith ( this task, FiberInstruction instruction, TaskScheduler scheduler ) : Task
task this /// Task to continue. ///
instruction SpicyPixel.Threading.FiberInstruction /// The instruction to continue with. ///
scheduler System.Threading.Tasks.TaskScheduler /// Scheduler. ///
return Task

ContinueWith() public static method

Continues the task with a coroutine.
public static ContinueWith ( this task, IEnumerator coroutine ) : Task
task this /// Task to continue. ///
coroutine IEnumerator /// The coroutine to continue with. ///
return Task

ContinueWith() public static method

Continues the task with a coroutine.
public static ContinueWith ( this task, IEnumerator coroutine, CancellationToken cancellationToken ) : Task
task this /// Task to continue. ///
coroutine IEnumerator /// The coroutine to continue with. ///
cancellationToken System.Threading.CancellationToken /// Cancellation token. ///
return Task

ContinueWith() public static method

Continues the task with a coroutine.
public static ContinueWith ( this task, IEnumerator coroutine, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler ) : Task
task this /// Task to continue. ///
coroutine IEnumerator /// The coroutine to continue with. ///
cancellationToken System.Threading.CancellationToken /// Cancellation token. ///
continuationOptions TaskContinuationOptions /// Continuation options. ///
scheduler System.Threading.Tasks.TaskScheduler /// Scheduler to use when scheduling the task. ///
return Task

ContinueWith() public static method

Continues the task with a coroutine.
public static ContinueWith ( this task, IEnumerator coroutine, TaskContinuationOptions continuationOptions ) : Task
task this /// Task to continue. ///
coroutine IEnumerator /// The coroutine to continue with. ///
continuationOptions TaskContinuationOptions /// Continuation options. ///
return Task

ContinueWith() public static method

Continues the task with a coroutine.
public static ContinueWith ( this task, IEnumerator coroutine, TaskScheduler scheduler ) : Task
task this /// Task to continue. ///
coroutine IEnumerator /// The coroutine to continue with. ///
scheduler System.Threading.Tasks.TaskScheduler /// Scheduler. ///
return Task

StartNew() public static method

Creates a new task and starts executing it.
public static StartNew ( this taskFactory, FiberInstruction instruction ) : Task
taskFactory this /// Task factory to start with. ///
instruction SpicyPixel.Threading.FiberInstruction /// The instruction to start. ///
return Task

StartNew() public static method

Creates a new task and starts executing it.
public static StartNew ( this taskFactory, FiberInstruction instruction, CancellationToken cancellationToken ) : Task
taskFactory this /// Task factory to start with. ///
instruction SpicyPixel.Threading.FiberInstruction /// The instruction to start. ///
cancellationToken System.Threading.CancellationToken /// Cancellation token. ///
return Task

StartNew() public static method

Creates a new task and starts executing it.
public static StartNew ( this taskFactory, FiberInstruction instruction, CancellationToken cancellationToken, TaskCreationOptions creationOptions, TaskScheduler scheduler ) : Task
taskFactory this /// Task factory to start with. ///
instruction SpicyPixel.Threading.FiberInstruction /// The instruction to start. ///
cancellationToken System.Threading.CancellationToken /// Cancellation token. ///
creationOptions TaskCreationOptions /// Creation options. ///
scheduler System.Threading.Tasks.TaskScheduler /// Scheduler. ///
return Task

StartNew() public static method

Creates a new task and starts executing it.
public static StartNew ( this taskFactory, FiberInstruction instruction, TaskCreationOptions creationOptions ) : Task
taskFactory this /// Task factory to start with. ///
instruction SpicyPixel.Threading.FiberInstruction /// The instruction to start. ///
creationOptions TaskCreationOptions /// Creation options. ///
return Task

StartNew() public static method

Creates a new task and starts executing it.
public static StartNew ( this taskFactory, IEnumerator coroutine ) : Task
taskFactory this /// Task factory to start with. ///
coroutine IEnumerator /// The coroutine to start. ///
return Task

StartNew() public static method

Creates a new task and starts executing it.
public static StartNew ( this taskFactory, IEnumerator coroutine, CancellationToken cancellationToken ) : Task
taskFactory this /// Task factory to start with. ///
coroutine IEnumerator /// The coroutine to start. ///
cancellationToken System.Threading.CancellationToken /// Cancellation token. ///
return Task

StartNew() public static method

Creates a new task and starts executing it.
public static StartNew ( this taskFactory, IEnumerator coroutine, CancellationToken cancellationToken, TaskCreationOptions creationOptions, TaskScheduler scheduler ) : Task
taskFactory this /// Task factory to start with. ///
coroutine IEnumerator /// The coroutine to start. ///
cancellationToken System.Threading.CancellationToken /// Cancellation token. ///
creationOptions TaskCreationOptions /// Creation options. ///
scheduler System.Threading.Tasks.TaskScheduler /// Scheduler. ///
return Task

StartNew() public static method

Creates a new task and starts executing it.
public static StartNew ( this taskFactory, IEnumerator coroutine, TaskCreationOptions creationOptions ) : Task
taskFactory this /// Task factory to start with. ///
coroutine IEnumerator /// The coroutine to start. ///
creationOptions TaskCreationOptions /// Creation options. ///
return Task