-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
FLUsHOUTPUT in a background task? #1774
Comments
Why is it a problem if it is a buffered stream and doing exactly what you expect a buffered stream to do? Having a background task going around and arbitrarily flushing output seems like a pretty anti-social thing to do. |
I've posted the answer...
… Am 28.06.2024 um 05:45 schrieb Larry Masinter ***@***.***>:
this poster from StackOVerflow had a question:
https://stackoverflow.com/questions/78645353/write-text-i-o-stream-to-file-with-interlisp-medley
The problem is these are buffered streams and there is no background task of writing out the bytes. So you won't see the lalala until you caall (FLUWHOUTPUT S) or close the stream.
***@***.*** <https://github.com/lispm> could you reply to the poster? I dont have 50 Overflow points or whatever)
Should there be, and when and where should it run? Is it a problem for process streams?
DSK and UNIX only? Not a network problem?
Originally posted by @masinter <https://github.com/masinter> in #1405 (comment) <#1405 (comment)>
—
Reply to this email directly, view it on GitHub <#1774>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAKLE3LEYDRBUGBW4KLKFQ3ZJTL5BAVCNFSM6AAAAABKBCJ4K6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGM3TSNJQGEYDIMA>.
You are receiving this because you were mentioned.
|
Forget background task, I can't get it to print to the file at all, even with calling (FLUSHOUTPUT S) manually. Closing the file doesn't do anything, either. |
@Angular-Angel, I have no trouble writing files in Medley - I do it all the time. If I can replicate what you're doing I can diagnose what's going wrong for you. |
I found a solution. Ended up using |
this poster from StackOVerflow had a question:
https://stackoverflow.com/questions/78645353/write-text-i-o-stream-to-file-with-interlisp-medley
The problem is these are buffered streams and there is no background task of writing out the bytes. So you won't see the lalala until you caall (FLUWHOUTPUT S) or close the stream.
(@lispm could you reply to the poster? I dont have 50 Overflow points or whatever)
Should there be, and when and where should it run? Is it a problem for process streams?
DSK and UNIX only? Not a network problem?
Originally posted by @masinter in #1405 (comment)
The text was updated successfully, but these errors were encountered: