Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/effector/packages/effector/index.d.ts>allSettled

Business logic with ease ☄️
Latest
function allSettled
import { allSettled } from "https://deno.land/x/effector@effector-vue%4023.1.0/packages/effector/index.d.ts";

Run effect in scope and wait for all triggered effects to settle. This method never throw an error

Type Parameters

FX extends Effect<any, any, any>

Parameters

unit: FX

effect to run

config: { scope: Scope; params: EffectParams<FX>; }

Returns

Promise<{ status: "done"; value: EffectResult<FX>; } | { status: "fail"; value: EffectError<FX>; }>

promise with status object for given effect, will resolve when there will be no pending effects in given scope

Run effect withot arguments in scope and wait for all triggered effects to settle. This method never throw an error

Type Parameters

FX extends Effect<void, any, any>

Parameters

unit: FX

effect to run

config: { scope: Scope; }

Returns

Promise<{ status: "done"; value: EffectResult<FX>; } | { status: "fail"; value: EffectError<FX>; }>

promise with status object for given effect, will resolve when there will be no pending effects in given scope

Run unit in scope and wait for all triggered effects to settle. This method never throw an error

Parameters

event or store to run

config: { scope: Scope; params: T; }

Returns

Promise<void>

void promise, will resolve when there will be no pending effects in given scope

Run unit without arguments in scope and wait for all triggered effects to settle. This method never throw an error

Parameters

unit: UnitTargetable<void>

event or store to run

config: { scope: Scope; }

Returns

Promise<void>

void promise, will resolve when there will be no pending effects in given scope

Check for any ongoing computations in provided scope and wait for them to settle.

Parameters

scope: Scope

{Scope}

Returns

Promise<void>

void promise, will resolve when there will be no pending effects in given scope