Skip to content

Consider making callbacks async #64

Description

@PMunch

Currently the callbacks are not async procedures. This means that if you want to listen to messages and publish messages in response to certain events you need to either use waitFor or add a separate queue system to serve messages from a looping async task. It would be nice to have an overload of subscribe which took a async callback to avoid this. The callback could simply be called with asyncCheck so it wouldn't hang the loop.

No activity

Activity on this issue will appear here.

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