mirror of https://github.com/sbt/sbt.git
put backticks around `yield` in Thread.yield
This commit is contained in:
parent
007a8f2a70
commit
d57f5ac180
|
|
@ -115,7 +115,7 @@ class StreamDumper(in: java.io.BufferedReader, out: java.io.PrintStream) extends
|
||||||
endTime.set(System.currentTimeMillis + 2000)
|
endTime.set(System.currentTimeMillis + 2000)
|
||||||
// at this point we'd rather the dumper thread run
|
// at this point we'd rather the dumper thread run
|
||||||
// before we check whether to sleep
|
// before we check whether to sleep
|
||||||
Thread.yield()
|
Thread.`yield`()
|
||||||
// let ourselves read more (thread should exit on earlier of endTime or EOF)
|
// let ourselves read more (thread should exit on earlier of endTime or EOF)
|
||||||
while (isAlive() && (endTime.get > System.currentTimeMillis))
|
while (isAlive() && (endTime.get > System.currentTimeMillis))
|
||||||
Thread.sleep(50)
|
Thread.sleep(50)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue