Skip to content

Make sure errors from Promise.sync() and/or PromisingFunction.run() are informative enough so the user knows when to use which #88

Description

@teremterem
  • When .sync() is used outside of a running event loop, the error message should advise to use .run() instead.
  • What to do if it's the other way around (.run() is used, but the the event loop is already running) ?
    • Should await_children()/await_children_sync() be also mentioned in any way ?
  • Generate tests for these scenarios.

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions