Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Async Events #5

Merged
merged 9 commits into from
May 19, 2024
Merged

Async Events #5

merged 9 commits into from
May 19, 2024

Conversation

wise0704
Copy link
Owner

@wise0704 wise0704 commented Apr 28, 2024

Changes:

  • Added AsyncEvent: __call__ is a coroutine function using either asyncio.gather() (=3.10) or asyncio.TaskGroup (>=3.11).
  • Added AsyncEventHandler: an async version of EventHandler
  • Added async_event: parameter signatures use AsyncEventHandler instead of EventHandler
  • @events decorator will recognise AsyncEvent and async_event annotations.

Resolves:

@wise0704 wise0704 merged commit 14746ba into master May 19, 2024
3 checks passed
@wise0704 wise0704 deleted the async branch November 1, 2024 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant