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

Support realtime output through a pipe (fixes #145) #202

Merged
merged 1 commit into from
Oct 22, 2023

Conversation

neithere
Copy link
Owner

If the output stream is not a terminal (i.e. redirected to a file or another process), it's probably buffered. In most cases it doesn't matter. However, if the output of your program is generated with delays between the lines and you may want to redirect them to another process and immediately see the results (e.g. my_app.py | grep something), it's a good idea to force flushing of the buffer. To do so, set dispatch(..., always_flush=True).

@neithere neithere added this to the 0.31 milestone Oct 22, 2023
@neithere neithere merged commit a620f2b into release/v0.31.0 Oct 22, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant