ColdTaskModule
Functions for creating and executing cold tasks.
Summary
| Name | Signature | Synopsis |
|---|---|---|
| Union cases | ||
| ColdTask | ColdTask CancellationToken -> Task<'value> | No description available. |
| Operations | ||
| create | ColdTask.create operation | Creates a cold task from a cancellable factory. |
| fromTaskFactory | ColdTask.fromTaskFactory factory | Creates a cold task from a factory that does not observe cancellation. |
| awaitStartedTask | ColdTask.awaitStartedTask startedTask | Wraps a task that has already been started. |
| fromValueTaskFactory | ColdTask.fromValueTaskFactory factory | Creates a cold task from a cancellable value-task factory. |
| fromValueTaskFactoryWithoutCancellation | ColdTask.fromValueTaskFactoryWithoutCancellation factory | Creates a cold task from a value-task factory that does not observe cancellation. |
| awaitStartedValueTask | ColdTask.awaitStartedValueTask startedValueTask | Wraps a value task that has already been started. |
| run | ColdTask.run cancellationToken coldTask | Executes the cold task with the supplied cancellation token. |
Union cases
Operations
kind:member
kind:member
kind:member
kind:member
kind:member
ColdTask.fromValueTaskFactoryWithoutCancellation factory
MemberCreates a cold task from a value-task factory that does not observe cancellation.
Parameters
| Name | Type | Description |
|---|---|---|
| factory | unit -> ValueTask<'value> | The factory invoked on each execution. |
Returns
ColdTask<'value>
kind:member

