Skip to content

Fix channel notification for create_task async receive#40

Merged
benoitc merged 1 commit intomainfrom
fix/channel-create-task-notification
Mar 19, 2026
Merged

Fix channel notification for create_task async receive#40
benoitc merged 1 commit intomainfrom
fix/channel-create-task-notification

Conversation

@benoitc
Copy link
Owner

@benoitc benoitc commented Mar 19, 2026

Summary

  • Fix async channel receive hanging when using create_task
  • event_loop_add_pending() now sends task_ready to worker
  • Fix Python 3.9 compat: use Optional[bytes] instead of bytes | None
  • Add tests for create_task + delayed data scenario

event_loop_add_pending() now sends task_ready to worker, not just
pthread_cond_signal. This fixes async channel receive hanging when
using create_task (where Python is not waiting on the condition var).

Also fix Python 3.9 compat: use Optional[bytes] instead of bytes | None.
@benoitc benoitc merged commit 3c4b90e into main Mar 19, 2026
11 checks passed
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