Skip to content

Commit 1569310

Browse files
feat: added coroutine adapter example
1 parent e536422 commit 1569310

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CoroutineAdapters/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
# CoroutineAdapter
22
Coroutines are used to simplify asynchronous programming. They are very light and can be sometimes used in place of RxJava for performing async operations with less code. Coroutine Adapter is a call Adapter around Retrofit for Http calls developed by Jake Wharton.
3-
<br>
3+
<br><br>
44
<b>Docs: </b> https://github.com/JakeWharton/retrofit2-kotlin-coroutines-adapter
55
<br><br>
66
In this example we asynchronously hit 2 endpoints 1st is from where we get id and 2nd is to get the list of crew. We use coroutine Adapter of retrofit to asynchronously hit the 2 end points.
77
<br><br>
8-
PS: Coroutines are in a experimental version. They will soon be stable.
8+
<b>PS:</b> Coroutines are in a experimental version. They will soon be stable.
99
<br><br>
1010
To integrate the adapter integrate following dependency:
1111
<br>
1212
<pre>
1313
compile 'com.jakewharton.retrofit:retrofit2-kotlin-coroutines-experimental-adapter:1.0.0'
1414
</pre>
1515
<br><br>
16-
Screenshots:
16+
<b>Screenshots:</b>
1717
<br><br>
1818
<img src="coroutineAdapter.gif"/>

0 commit comments

Comments
 (0)