Effection Logo

function withResolvers

thefrontside/effection

function withResolvers<T>(description?: string): 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

Parameters

descriptionoptional: string

Return Type

WithResolvers<T>

an operation and its resolvers.