Skip to content

Commit ed723ac

Browse files
authored
Create README.md
1 parent f3b9b1b commit ed723ac

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

AndroidAsync-Kotlin/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Kotlin Coroutines
2+
3+
Adds coroutines support to AndroidAsync and Ion.
4+
5+
Since AndroidAsync and Ion operations all returned futures, you can simply call await() on them within a Kotlin suspend function.
6+
7+
```kotlin
8+
val data = Ion.with(context).load("https://google.com/robots.txt").asString().await()
9+
```
10+
11+
That's it!

0 commit comments

Comments
 (0)