We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16ce0c1 commit 0ee6617Copy full SHA for 0ee6617
1 file changed
README.md
@@ -42,7 +42,7 @@ def await[T](future: Future[T])(using Async): T = {
42
result.get
43
}
44
45
-/** Utility for interop - can compose a `Future` via delimited continuations. */
+/** End-of-the world execution, to use for ScalaJS in `main`. */
46
def runToFuture[T](body: Async ?=> T): Future[T] = {
47
val p = Promise[T]()
48
val _ = Continuations.boundary[Unit] {
@@ -51,7 +51,7 @@ def runToFuture[T](body: Async ?=> T): Future[T] = {
51
p.future
52
53
54
-/** End-of-the world execution, to use in `main`. */
+/** End-of-the world execution, to use in `main` for JVM/Native. */
55
def runBlocking[T](body: Async ?=> T): T = {
56
import java.util.concurrent.CountDownLatch
57
var result: Option[Try[T]] = None
0 commit comments