- Companion:
- class
Type members
Value members
Concrete methods
Creates an effect that, when successful, will produce given value, execution is suspended until the effect is run
Creates an effect that, when successful, will produce given value, execution is suspended until the effect is run
- Type parameters:
- A
type of the value to produce
- Value parameters:
- a
success value to produce
- Returns:
an effect that, when successful, will produce given value
Creates an effect from a callback-based code, leaving completion logic to the caller to bring arbitrary asynchronous code into a functional effect
Creates an effect from a callback-based code, leaving completion logic to the caller to bring arbitrary asynchronous code into a functional effect
- Value parameters:
- complete
completion callback to call with a result
- Returns:
an effect from a callback-based code
Creates an effect that fails with given error
Creates an effect that fails with given error
- Value parameters:
- e
error to produce
- Returns:
an effect that fails with given error