Effection Logo

function until

thefrontside/effection

function until<T>(promise: Promise<T>): Operation<T>

Treat a promise as an Operation

Examples

Example 1

let response = yield* until(fetch('https://google.com'));

Type Parameters

T

Parameters

promise: Promise<T>

Return Type

Operation<T>

that succeeds or fails depending on the outcome of promise