effect-motion
API ReferencethreeNamespacesInteropFunctions

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

ParameterTypeDescription
operationstringName of the three operation, used in the error.
fn() => AThe call to make.

Returns

Effect<A, ThreeException, never>

On this page