Skip to content

Integrate with async_hooks #9

Description

@aleclarson

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).

  1. Import auto-completion in IDEs
  2. Allow functions declared outside the generator to use jumpgen APIs, without having to pass it as an explicit argument

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions