mirror of https://github.com/sbt/sbt.git
The ask user thread is a background thread so it's fine for it to block on System.in. By blocking rather than polling, the cpu utilization of sbt drops to 0 on idle. We have to explicitly handle <ctrl+d> if we block though because the JLine console reader will return null both if the input stream returns -1 |
||
|---|---|---|
| .. | ||
| src | ||
| NOTICE | ||