Skip to content

Commit 3edb34d

Browse files
authored
Update README.md
1 parent ed723ac commit 3edb34d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

AndroidAsync-Kotlin/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ Adds coroutines support to AndroidAsync and Ion.
55
Since AndroidAsync and Ion operations all returned futures, you can simply call await() on them within a Kotlin suspend function.
66

77
```kotlin
8-
val data = Ion.with(context).load("https://google.com/robots.txt").asString().await()
8+
val robotsTxt = Ion.with(context)
9+
.load("https://google.com/robots.txt")
10+
.asString()
11+
.await()
912
```
1013

1114
That's it!

0 commit comments

Comments
 (0)