You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Runs new coroutine and **blocks** current thread _interruptibly_ until its completion.
15
-
* This function should not be used from coroutine. It is designed to bridge regular blocking code
14
+
* Runs a new coroutine and **blocks** the current thread _interruptibly_ until its completion.
15
+
* This function should not be used from a coroutine. It is designed to bridge regular blocking code
16
16
* to libraries that are written in suspending style, to be used in `main` functions and in tests.
17
17
*
18
18
* The default [CoroutineDispatcher] for this builder is an internal implementation of event loop that processes continuations
@@ -21,14 +21,15 @@ import kotlin.coroutines.*
21
21
*
22
22
* When [CoroutineDispatcher] is explicitly specified in the [context], then the new coroutine runs in the context of
23
23
* the specified dispatcher while the current thread is blocked. If the specified dispatcher is an event loop of another `runBlocking`,
24
-
* then this invocation uses an outer event loop.
24
+
* then this invocation uses the outer event loop.
25
25
*
26
26
* If this blocked thread is interrupted (see [Thread.interrupt]), then the coroutine job is cancelled and
27
27
* this `runBlocking` invocation throws [InterruptedException].
28
28
*
29
-
* See [newCoroutineContext][CoroutineScope.newCoroutineContext] for a description of debugging facilities that are available for newly created coroutine.
29
+
* See [newCoroutineContext][CoroutineScope.newCoroutineContext] for a description of debugging facilities that are available
30
+
* for a newly created coroutine.
30
31
*
31
-
* @param context context of the coroutine. The default value is an event loop on current thread.
32
+
* @param context the context of the coroutine. The default value is an event loop on the current thread.
0 commit comments