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

chore: add more test_threaded_stream tests #1463

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

pcriadoperez
Copy link
Collaborator

@pcriadoperez pcriadoperez commented Oct 29, 2024

  • Add tests for threaded stream
  • Add support for async callback
  • improve closing

@coveralls
Copy link

coveralls commented Oct 29, 2024

Coverage Status

coverage: 58.251% (+0.4%) from 57.892%
when pulling 44ff3be on pcriadoperez:test-thread-stream
into bc74c57 on sammchardy:master.

callback(msg)
continue # Handle both async and sync callbacks
if asyncio.iscoroutinefunction(callback):
await callback(msg)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to make this non blocking by using self._loop.call_soon_threadsafe() but kept running into different errors

@carlosmiei carlosmiei closed this Oct 30, 2024
@carlosmiei carlosmiei reopened this Oct 30, 2024
@carlosmiei
Copy link
Collaborator

hum @pcriadoperez this test is failing consistently
image

@carlosmiei carlosmiei closed this Oct 31, 2024
@carlosmiei carlosmiei reopened this Oct 31, 2024
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.

3 participants