CancellationSource Module
Effects for reading and cancelling the environment's CancellationTokenSource.
Functions and values
| Function or value |
Description
|
An effect that cancels the environment's cancellation source.
|
|
Full Usage:
getToken ()
Parameters:
unit
Returns: Effect<'a, CancellationToken, 'b>
Type parameters: 'a, 'b (requires :> Orsak.ICancellationProvider) |
An effect that gets the token of the environment's cancellation source, e.g. to pass on to .NET APIs.
Example
val download: client: 'a -> url: string -> 'b
val client: 'a
val url: string
Multiple items
val string: value: 'T -> string -------------------- type string = System.String |
Orsak