Draft
Conversation
It allows having unique fns indexed by identifiers.
d6b0ea2 to
43680fa
Compare
added 4 commits
January 19, 2023 22:17
c3eba7c to
45c45c7
Compare
MuaDDuB
approved these changes
Jan 20, 2023
MuaDDuB
left a comment
There was a problem hiding this comment.
Looks good 👍
Small comments to better understand 😄
added 9 commits
January 20, 2023 18:29
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of the Change
Implements #5
v2.0.0
Added
if()with a defined identifier. In the same way, if anotherif()predicate is set with the same identifier, it will override the previous one.Add
deleteFunctionsWhenJobsStartedoption allowing the deletion of registered functions when the jobs are started.Add
debug.logFunctionRegistrationsanddebug.logFunctionExecutionsoptions allowing functions registrations and executions logs. Don't forget to setDEBUG=AsyncProcess:*as an environment variable or in your browser's local storage.Keep errors thrown by jobs as is.
Example: If the job is a fetch query and if the response is a 404, the
errobject will be a Response object.AsyncProcess instances now accept two more generics, results (
R) and an error (E), allowing to enforce typings of jobs results and jobs exceptions.Benefits
Possible Drawbacks
Testing Instructions
Checklist