Skip to content

Commit

Permalink
Fix #692
Browse files Browse the repository at this point in the history
  • Loading branch information
armanbilge authored and tgodzik committed Sep 5, 2023
1 parent 3be2a0f commit bab371b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ object PlatformCompat {
duration: Duration,
ec: ExecutionContext
): Future[T] = {
startFuture()
val f = startFuture()
scala.scalanative.runtime.loop()
f
}
def setTimeout(ms: Int)(body: => Unit): () => Unit = {
Thread.sleep(ms)
Expand Down

0 comments on commit bab371b

Please sign in to comment.