Function or value | Description |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
![]() ![]() ![]() ![]() ![]() ![]() Potentially recovers a failed effect by producing a new effect in case of failure. If the effect was already successful, f is never run.
|
|
|
|
|
|
|
|
![]() ![]() ![]() ![]() ![]() ![]()
Recovers a failed effect by producing an
|
|
|
Full Usage:
Effect.ret a
Parameters:
'a
-
The value to wrap in the effect
Returns: Effect<'r, 'a, 'e>
Modifiers: inline Type parameters: 'r, 'a, 'e |
|
|
|
|
|
|
|
|
|
Full Usage:
Effect.run env e
Parameters:
'r
-
The environment needed to start the effect
e : Effect<'r, 'a, 'e>
-
The effect to run
Returns: AsyncResult<'a, 'e>
Modifiers: inline Type parameters: 'r, 'a, 'e |
|
|
|
|
![]() ![]() ![]() ![]() ![]() ![]() Sequences an array of effects, turning it in to an effect of an array. For a more generic implementation, consider FSharpPlus
|
|
|
|
![]() ![]() ![]() ![]() ![]() ![]() Configures an effect to fail after a given amount of time, unless it has already succeeded. The original effect still executes.
|
|
![]() ![]() ![]() ![]() ![]() ![]() Traverses an array of effects, turning it in to an effect of an array. For a more generic implementation, consider FSharpPlus
|
|
![]() ![]() ![]() ![]() ![]() ![]() Potentially recovers a failed effect by producing an Result{'a, 'e} in case of failure. If the effect was already successful, f is never run.
|
Full Usage:
Effect.withCancellation ct eff
Parameters:
CancellationToken
eff : Effect<'a, unit, 'b>
Returns: Effect<'a, unit, 'b>
|
|
Full Usage:
Effect.zip e1 e2 f
Parameters:
Effect<'r, 'a, ^e>
-
The first effect.
e2 : Effect<'r, 'b, ^e>
-
The second effect.
f : 'a * 'b -> 'g
-
Function to combine the result of the effects in case both succeeds.
Returns: Effect<'r, 'g, ^e>
Modifiers: inline Type parameters: 'r, 'a, ^e, 'b, 'g |
![]() ![]() ![]() ![]() ![]() ![]() Zips two effects together, the resulting effect will fail if either of the effects failed. In case both failed, the error is combined. The effects will execute in parallel if possible.
|