PeanutButter
Loading...
Searching...
No Matches
PeanutButter.Async.Interfaces.ITaskRunner Interface Reference

Provides a wrapper around task running. More...

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

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.

Detailed Description

Provides a wrapper around task running.

Member Function Documentation

◆ Continue()

IContinuation PeanutButter.Async.Interfaces.ITaskRunner.Continue ( Task task1)

Continues the provided task.

Parameters
task1
Returns

Implemented in PeanutButter.Async.TaskRunner.

◆ Continue< T >()

Continues the provided task.

Parameters
initial
Returns

Implemented in PeanutButter.Async.TaskRunner.

◆ CreateNotStartedFor()

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

Creates a suspended task for the provided action.

Parameters
action
cancellationToken
Returns

Implemented in PeanutButter.Async.TaskRunner.

◆ CreateNotStartedFor< T >()

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

Creates a suspended task for the provided func.

Parameters
func
cancellationToken
Template Parameters
T
Returns

Implemented in PeanutButter.Async.TaskRunner.

◆ Run()

Task PeanutButter.Async.Interfaces.ITaskRunner.Run ( Action action)

Runs an action async.

Parameters
action
Returns

Implemented in PeanutButter.Async.TaskRunner.

◆ Run< T >()

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

Runs a func async and returns the task.

Parameters
func
Template Parameters
T
Returns

Implemented in PeanutButter.Async.TaskRunner.

◆ RunLong()

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

Runs the action as LongRunning.

Parameters
action
token
Returns

Implemented in PeanutButter.Async.TaskRunner.


The documentation for this interface was generated from the following file:
  • source/Async/PeanutButter.Async/Interfaces/ITaskRunner.cs