Effection Logo

function until

thefrontside/effection

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

It can be used to treat a promise as an operation. This function is a replacement to the deprecated call(promise) function form.

Examples

Example 1

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

Type Parameters

T

Parameters

promise: PromiseLike<T>

Return Type

Operation<T>