This is part of the Fake.Core.Process module.

AsyncExtensions

Nested types and modules

TypeDescription
VolatileBarrier

Functions and values

Function or valueDescription
getCancelledException(...)
Signature: completedTask:Task -> waitWithAwaiter:(unit -> unit) -> OperationCanceledException
startAsTaskHelper(...)
Signature: start:(Async<unit> -> unit) -> computation:Async<'?9568> -> cancellationToken:CancellationToken option -> taskCreationOptions:TaskCreationOptions option -> Task<'?9568>
Type parameters: '?9568
startCatchCancellation(...)
Signature: (work:Async<'?9566> * cancellationToken:CancellationToken option) -> Async<'?9566>
Type parameters: '?9566

Type extensions

Type extensionDescription
Async.AwaitTaskWithoutAggregate(task)
Signature: task:Task<'T> -> Async<'T>
Type parameters: 'T
Async.AwaitTaskWithoutAggregate(task)
Signature: task:Task -> Async<unit>
x.Bind(t, f)
Signature: (t:Task<'T> * f:('T -> Async<'R>)) -> Async<'R>
Type parameters: 'T, 'R

An extension method that overloads the standard 'Bind' of the 'async' builder. The new overload awaits on a standard .NET task

x.Bind(t, f)
Signature: (t:Task * f:(unit -> Async<'R>)) -> Async<'R>
Type parameters: 'R

An extension method that overloads the standard 'Bind' of the 'async' builder. The new overload awaits on a standard .NET task which does not commpute a value

Async.StartAsTaskProperCancel(...)
Signature: (computation:Async<'?9572> * taskCreationOptions:TaskCreationOptions option * cancellationToken:CancellationToken option) -> Task<'?9572>
Type parameters: '?9572

Like StartAsTask but gives the computation time to so some regular cancellation work

Async.StartCatchCancellation(...)
Signature: (work:Async<'?9570> * cancellationToken:CancellationToken option) -> Async<'?9570>
Type parameters: '?9570
Async.StartImmediateAsTask(...)
Signature: (computation:Async<'?9574> * taskCreationOptions:TaskCreationOptions option * cancellationToken:CancellationToken option) -> Task<'?9574>
Type parameters: '?9574