Skip to content

Commit bcc1c64

Browse files
authored
Added not about runBlocking
1 parent 6cffd39 commit bcc1c64

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,15 @@ Maven:
2727
</dependency>
2828
```
2929

30-
3130
## How to use
31+
32+
33+
> NOTE: All examples in this Readme use [`runBlocking`](https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental/run-blocking.html) to build coroutine but it useful only for testing or examples.
34+
>
35+
> For a real application you want probably use some other coroutines builder that don't block thread, for example [`launch`](https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental/launch.html) from [kotlinx.coroutines](https://github.com/kotlin/kotlinx.coroutines).
36+
>
37+
> If you want to use this library for UI please check also [Guide to UI programming with coroutines](https://github.com/Kotlin/kotlinx.coroutines/blob/master/ui/coroutines-guide-ui.md)
38+
3239
There are three suspending extensions:
3340

3441
### `.await()`

0 commit comments

Comments
 (0)