We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d068356 commit c7877b3Copy full SHA for c7877b3
js-envs-test-kit/src/main/scala/org/scalajs/jsenv/test/kit/MsgHandler.scala
@@ -43,8 +43,12 @@ private[kit] final class MsgHandler {
43
notifyAll()
44
}
45
46
- @tailrec
47
def waitOnMessage(deadline: Deadline): String = synchronized {
+ waitOnMessageLoop(deadline)
48
+ }
49
+
50
+ @tailrec
51
+ private def waitOnMessageLoop(deadline: Deadline): String = {
52
if (msgs.nonEmpty) {
53
val (msg, newMsgs) = msgs.dequeue
54
msgs = newMsgs
@@ -60,7 +64,7 @@ private[kit] final class MsgHandler {
60
64
61
65
62
66
wait(millis)
63
- waitOnMessage(deadline)
67
68
69
70
0 commit comments