File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
# Support for Kotlin Coroutines in AndroidAsync and Ion
2
2
3
+ Adds coroutines support to AndroidAsync and Ion.
4
+
3
5
Maven:
4
6
``` xml
5
7
<dependency >
6
8
<groupId >com.koushikdutta.async</groupId >
7
- <artifactId >androidasync</artifactId >
9
+ <artifactId >androidasync-kotlin </artifactId >
8
10
<version >(insert latest version)</version >
9
11
</dependency >
10
12
```
11
13
12
14
Gradle:
13
15
``` groovy
14
16
dependencies {
15
- compile 'com.koushikdutta.async:androidasync:2.+ '
17
+ compile 'com.koushikdutta.async:androidasync-kotlin:<insert latest version> '
16
18
}
17
19
```
18
20
19
- Adds coroutines support to AndroidAsync and Ion.
20
-
21
21
Since AndroidAsync and Ion operations all returned futures, you can simply call await() on them within a Kotlin suspend function.
22
22
23
23
``` kotlin
You can’t perform that action at this time.
0 commit comments