We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is your feature request related to a problem? Please describe.
These 3 predicates could inspect the state of the promise or the objects returned by RA.allSettledP. These functions must be synchronous.
RA.allSettledP
Describe the solution you'd like
RA.isFullfilledP(Promise.resolve(3)); // => true RA.isRejectedP(Promise.reject(3)); // => true RA.isPendingP(RA.delayP(200)); //=> true
Describe alternatives you've considered
--
Additional context
https://ourcodeworld.com/articles/read/317/how-to-check-if-a-javascript-promise-has-been-fulfilled-rejected-or-resolved
Chais-as-promised contains implementation for two of these predicate functions: https://www.chaijs.com/plugins/chai-as-promised/
RA.isPendingP is true when RA.isFullfilledP and RA.isRejectedP both return false. We can use this fact to compose this predicates.
RA.isPendingP
RA.isFullfilledP
RA.isRejectedP
false
The text was updated successfully, but these errors were encountered:
@char0n could i take this one?
Sorry, something went wrong.
@tauantcamargo feel free to grad any function you like. All the function described in issues are on the plate.
No branches or pull requests
Is your feature request related to a problem? Please describe.
These 3 predicates could inspect the state of the promise or the objects returned by
RA.allSettledP
. These functions must be synchronous.Describe the solution you'd like
Describe alternatives you've considered
--
Additional context
https://ourcodeworld.com/articles/read/317/how-to-check-if-a-javascript-promise-has-been-fulfilled-rejected-or-resolved
Chais-as-promised contains implementation for two of these predicate functions: https://www.chaijs.com/plugins/chai-as-promised/
RA.isPendingP
is true whenRA.isFullfilledP
andRA.isRejectedP
both returnfalse
. We can use this fact to compose this predicates.The text was updated successfully, but these errors were encountered: