Newer version available
You’re viewing the API reference for version 3.2.1, but the latest version is 3.6.1. The latest version include may important updates and fixes.
View Latest Versioninterface WithResolvers
thefrontside/effectioninterface WithResolvers<T>
The return type of withResolvers. It contains an operation bundled with synchronous functions that determine its outcome.
Type Parameters
T
Properties
- operation: Operation<T>
No documentation available.
Methods
- resolve(value: T): void
Cause operation to produce
value. If eitherresolveorrejecthas been called before, this will have no effect.- reject(error: Error): void
Cause operation to raise
Error. Any calling operation waiting onoperationwill. Yielding tooperationsubsequently will also raise the same error. * If eitherresolveorrejecthas been called before, this will have no effect.