Effection Logo

function withResolvers

thefrontside/effection

function withResolvers<T>(): WithResolvers<T>

Create an and two functions to resolve or reject it, corresponding to the two parameters passed to the executor of the action constructor. This is the Effection equivalent of [Promise.withResolvers()]https

Type Parameters

T

Return Type

WithResolvers<T>

an operation and its resolvers.