Header menu logo FSharp.Control.TaskSeq

ValueTask Module

Functions and values

Function or value Description

False

Full Usage: False

Returns: ValueTask<bool>

A successfully completed ValueTask of boolean that has the value false.

Returns: ValueTask<bool>

True

Full Usage: True

Returns: ValueTask<bool>

A successfully completed ValueTask of boolean that has the value true.

Returns: ValueTask<bool>

fromResult value

Full Usage: fromResult value

Parameters:
    value : 'T

Returns: ValueTask<'T>
Modifiers: inline
Type parameters: 'T

Creates a ValueTask with the supplied result of the successful operation.

value : 'T
Returns: ValueTask<'T>

ignore valueTask

Full Usage: ignore valueTask

Parameters:
Returns: ValueTask
Modifiers: inline
Type parameters: 'T

Convert a ValueTask<'T> into a non-generic ValueTask, ignoring the result

valueTask : ValueTask<'T>
Returns: ValueTask

ofSource taskSource version

Full Usage: ofSource taskSource version

Parameters:
Returns: ValueTask<bool>
Modifiers: inline

Initializes a new instance of ValueTask with an IValueTaskSource representing its operation.

taskSource : IValueTaskSource<bool>
version : int16
Returns: ValueTask<bool>

ofTask task

Full Usage: ofTask task

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

Creates a ValueTask from a Task<'T>

task : Task<'T>
Returns: ValueTask<'T>

Type something to start searching.