Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hey,
i've got a deadlock when i've tried to use "send" inside a handler, for example:
The
print(filter_output)
will never run, cause the consumer is still stuck in theon_bridge
handler and doesn't process the answer from the send command.So i pushed the handlers in it's own tasks with:
That works for me, but i'm not sure that there aren't any side effects i don't know about.⚠️ ⚠️ ⚠️
And i've fixed some typos and type hints.
I've read into the "-> Awaitable[Something]" return values and you can skip that and just write "-> Something", cause the async already implies the "Awaitable".