Effect<'r, 'a, 'e> Type
Describes an effect that can either succeed with
Effects are usually written with the eff computation expression, and created from interfaces that describe
side effects with Effect.Create. The environment
Example
let greet () = eff {
let! name = Console.readLine ()
do! Console.writeLine $"Hello {name}"
}
// at the composition root, with an environment providing the console effects:
let! result = greet () |> Effect.run env
val greet: unit -> 'a
val result: obj
Union cases
| Union case |
Description
|
|
|
Instance members
| Instance member |
Description
|
|
Starts the effect.
|
|
Static members
| Static member |
Description
|
|
|
|
|
|
|
|
Orsak