Skip to content

Add blocking read and write helpers#16

Merged
iancharest merged 1 commit into
mainfrom
codex/blocking-read-write-helpers
Jun 12, 2026
Merged

Add blocking read and write helpers#16
iancharest merged 1 commit into
mainfrom
codex/blocking-read-write-helpers

Conversation

@iancharest

Copy link
Copy Markdown
Contributor

Summary

  • Add OutputStream.write_all() to wait for complete output buffer transfer.
  • Add InputStream.read_exactly() to wait for fixed-size capture.
  • Keep existing write() and read() methods nonblocking.
  • Update play() to start the stream before blocking writes, then drain.
  • Update README, architecture docs, changelog, and public API tests.

Validation

  • PYTHONPATH=src python3 -m unittest discover -s tests
  • python3 -m compileall -q src tests examples

Closes #6.

@iancharest iancharest merged commit 1fa1b76 into main Jun 12, 2026
10 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.

Add blocking read and write helpers

1 participant