Skip to content
This repository has been archived by the owner on Dec 14, 2017. It is now read-only.

Buffered output #67

Closed
lypanov opened this issue Oct 19, 2010 · 2 comments
Closed

Buffered output #67

lypanov opened this issue Oct 19, 2010 · 2 comments
Labels

Comments

@lypanov
Copy link

lypanov commented Oct 19, 2010

Would it be possible for cake to output stdout content from a background thread in a line buffered fashion instead of waiting for user input?

Thanks for the awesome project!

@ninjudd
Copy link
Owner

ninjudd commented Oct 20, 2010

Currently this is not possible because cake uses Readline, which blocks until input is received. It shouldn't be too hard to rewrite the duplex function to use a separate thread so it can print cake's output while Readline is still waiting. If you want to take a shot at it, feel free to fork cake. Otherwise, I will keep this use case in mind next time I am working on the persistent JVM.

@ninjudd ninjudd closed this as completed Jan 19, 2012
@ninjudd
Copy link
Owner

ninjudd commented Jan 19, 2012

Closing since we're moving to lein

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants