PeanutButter
Loading...
Searching...
No Matches
PeanutButter.Async.TaskRunner Class Reference

More...

Inheritance diagram for PeanutButter.Async.TaskRunner:
PeanutButter.Async.Interfaces.ITaskRunner

Public Member Functions

Task Run (Action action)
 Runs an action async.
Parameters
action
Returns

Task< T > Run< T > (Func< T > func)
 Runs a func async and returns the task.
Parameters
func
Template Parameters
T
Returns

Task RunLong (Action action, CancellationToken? token=null)
 Runs the action as LongRunning.
Parameters
action
token
Returns

Task< T > CreateNotStartedFor< T > (Func< T > func, CancellationToken? cancellationToken=null)
 Creates a suspended task for the provided func.
Parameters
func
cancellationToken
Template Parameters
T
Returns

Task CreateNotStartedFor (Action action, CancellationToken? cancellationToken=null)
 Creates a suspended task for the provided action.
Parameters
action
cancellationToken
Returns

IContinuation Continue (Task task1)
 Continues the provided task.
Parameters
task1
Returns

IContinuation< T > Continue< T > (Task< T > initial)
 Continues the provided task.
Parameters
initial
Returns

Detailed Description

Member Function Documentation

◆ Continue()

IContinuation PeanutButter.Async.TaskRunner.Continue ( Task task1)

Continues the provided task.

Parameters
task1
Returns

Implements PeanutButter.Async.Interfaces.ITaskRunner.

◆ Continue< T >()

IContinuation< T > PeanutButter.Async.TaskRunner.Continue< T > ( Task< T > initial)

Continues the provided task.

Parameters
initial
Returns

Implements PeanutButter.Async.Interfaces.ITaskRunner.

◆ CreateNotStartedFor()

Task PeanutButter.Async.TaskRunner.CreateNotStartedFor ( Action action,
CancellationToken? cancellationToken = null )

Creates a suspended task for the provided action.

Parameters
action
cancellationToken
Returns

Implements PeanutButter.Async.Interfaces.ITaskRunner.

◆ CreateNotStartedFor< T >()

Task< T > PeanutButter.Async.TaskRunner.CreateNotStartedFor< T > ( Func< T > func,
CancellationToken? cancellationToken = null )

Creates a suspended task for the provided func.

Parameters
func
cancellationToken
Template Parameters
T
Returns

Implements PeanutButter.Async.Interfaces.ITaskRunner.

◆ Run()

Task PeanutButter.Async.TaskRunner.Run ( Action action)

Runs an action async.

Parameters
action
Returns

Implements PeanutButter.Async.Interfaces.ITaskRunner.

◆ Run< T >()

Task< T > PeanutButter.Async.TaskRunner.Run< T > ( Func< T > func)

Runs a func async and returns the task.

Parameters
func
Template Parameters
T
Returns

Implements PeanutButter.Async.Interfaces.ITaskRunner.

◆ RunLong()

Task PeanutButter.Async.TaskRunner.RunLong ( Action action,
CancellationToken? token = null )

Runs the action as LongRunning.

Parameters
action
token
Returns

Implements PeanutButter.Async.Interfaces.ITaskRunner.


The documentation for this class was generated from the following file:
  • source/Async/PeanutButter.Async/TaskRunner.cs