Skip to content

Allow for session "on flush" and "on flushed" callbacks to be async #686

@schloerke

Description

@schloerke

Pro:

  • You can call session.send_custom_message() which is an await-able method in an "on flush" callback.

Cons:

  • The callbacks are not done within the same tick if there is a truly await-able method.
  • The next callback is started after the previous callback finishes, which could be a while.
    • Is there a way to "promise all" and launch all callbacks within the same start tick?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions