Header menu logo FSharp.Core

BackgroundTaskBuilder Type

Contains methods to build tasks using the F# computation expression syntax

Instance members

Instance member Description

this.Run

Full Usage: this.Run

Parameters:
Returns: Task<'T>
Modifiers: inline
Type parameters: 'T

Hosts the task code in a state machine and starts the task, executing in the threadpool using Task.Run

code : TaskCode<'T, 'T>
Returns: Task<'T>

Static members

Static member Description

BackgroundTaskBuilder.RunDynamic(code)

Full Usage: BackgroundTaskBuilder.RunDynamic(code)

Parameters:
Returns: Task<'T>

The entry point for the dynamic implementation of the corresponding operation. Do not use directly, only used when executing quotations that involve tasks or other reflective execution of F# code.

code : TaskCode<'T, 'T>
Returns: Task<'T>

Type something to start searching.