wrap
function wrap<A>(operation, fn): Effect<A, ThreeException, never>;
Function: wrap()
function wrap<A>(operation, fn): Effect<A, ThreeException, never>;Defined in: packages/three/src/Interop.ts:22
Run a synchronous three call, converting a throw into a ThreeException.
Type Parameters
| Type Parameter |
|---|
A |
Parameters
| Parameter | Type | Description |
|---|---|---|
operation | string | Name of the three operation, used in the error. |
fn | () => A | The call to make. |
Returns
Effect<A, ThreeException, never>