You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By taking advantage of the async_hooks API, users of jumpgen would be able to import the API from jumpgen/async_hooks instead of destructuring or passing around the context object within the generator.
There are two benefits I see to using async_hooks (more specifically, AsyncLocalStorage).
Import auto-completion in IDEs
Allow functions declared outside the generator to use jumpgen APIs, without having to pass it as an explicit argument
The text was updated successfully, but these errors were encountered:
By taking advantage of the async_hooks API, users of jumpgen would be able to import the API from
jumpgen/async_hooks
instead of destructuring or passing around the context object within the generator.There are two benefits I see to using
async_hooks
(more specifically,AsyncLocalStorage
).The text was updated successfully, but these errors were encountered: