put backticks around `yield` in Thread.yield

This commit is contained in:
Havoc Pennington 2014-05-29 12:32:10 -04:00
parent 007a8f2a70
commit d57f5ac180
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ class StreamDumper(in: java.io.BufferedReader, out: java.io.PrintStream) extends
endTime.set(System.currentTimeMillis + 2000)
// at this point we'd rather the dumper thread run
// before we check whether to sleep
Thread.yield()
Thread.`yield`()
// let ourselves read more (thread should exit on earlier of endTime or EOF)
while (isAlive() && (endTime.get > System.currentTimeMillis))
Thread.sleep(50)