File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/scala/scala/async Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import scala.reflect.internal.annotations.compileTimeOnly
11
11
/**
12
12
* Async blocks provide a direct means to work with [[scala.concurrent.Future ]].
13
13
*
14
- * For example, to use an API to that fetches as web page to fetch
14
+ * For example, to use an API that fetches a web page to fetch
15
15
* two pages and add their lengths:
16
16
*
17
17
* {{{
@@ -45,7 +45,7 @@ object Async {
45
45
def async [T ](body : T )(implicit execContext : ExecutionContext ): Future [T ] = macro internal.ScalaConcurrentAsync .asyncImpl[T ]
46
46
47
47
/**
48
- * Non-blocking await the on result of `awaitable`. This may only be used directly within an enclosing `await ` block.
48
+ * Non-blocking await the on result of `awaitable`. This may only be used directly within an enclosing `async ` block.
49
49
*
50
50
* Internally, this will register the remainder of the code in enclosing `async` block as a callback
51
51
* in the `onComplete` handler of `awaitable`, and will *not* block a thread.
You can’t perform that action at this time.
0 commit comments