PeanutButter
|
Provides a wrapper around task running. More...
Public Member Functions | |
Task | Run (Action action) |
Runs an action async. | |
Task< T > | Run< T > (Func< T > func) |
Runs a func async and returns the task. | |
Task | RunLong (Action action, CancellationToken? token=null) |
Runs the action as LongRunning. | |
Task< T > | CreateNotStartedFor< T > (Func< T > func, CancellationToken? cancellationToken=null) |
Creates a suspended task for the provided func. | |
Task | CreateNotStartedFor (Action action, CancellationToken? cancellationToken=null) |
Creates a suspended task for the provided action. | |
IContinuation | Continue (Task task1) |
Continues the provided task. | |
IContinuation< T > | Continue< T > (Task< T > initial) |
Continues the provided task. |
Provides a wrapper around task running.
IContinuation PeanutButter.Async.Interfaces.ITaskRunner.Continue | ( | Task | task1 | ) |
IContinuation< T > PeanutButter.Async.Interfaces.ITaskRunner.Continue< T > | ( | Task< T > | initial | ) |
Continues the provided task.
initial |
Implemented in PeanutButter.Async.TaskRunner.
Task PeanutButter.Async.Interfaces.ITaskRunner.CreateNotStartedFor | ( | Action | action, |
CancellationToken? | cancellationToken = null ) |
Creates a suspended task for the provided action.
action | |
cancellationToken |
Implemented in PeanutButter.Async.TaskRunner.
Task< T > PeanutButter.Async.Interfaces.ITaskRunner.CreateNotStartedFor< T > | ( | Func< T > | func, |
CancellationToken? | cancellationToken = null ) |
Creates a suspended task for the provided func.
func | |
cancellationToken |
T |
Implemented in PeanutButter.Async.TaskRunner.
Task PeanutButter.Async.Interfaces.ITaskRunner.Run | ( | Action | action | ) |
Task< T > PeanutButter.Async.Interfaces.ITaskRunner.Run< T > | ( | Func< T > | func | ) |
Runs a func async and returns the task.
func |
T |
Implemented in PeanutButter.Async.TaskRunner.
Task PeanutButter.Async.Interfaces.ITaskRunner.RunLong | ( | Action | action, |
CancellationToken? | token = null ) |
Runs the action as LongRunning.
action | |
token |
Implemented in PeanutButter.Async.TaskRunner.