This repository was archived by the owner on Apr 9, 2024. It is now read-only.
Commit ab2f0b3
authored
* Updates the `Client` functions to return a `Deferred`
The functions inside the client create a new Coroutine, in the IO dispatcher, that async the requests and return a Deferred object.
* Fixes the `ClientTest`
Fixes the test function to handle the `Deferred` wrapper object.
* Fixes the `Dispatchers` in the `RequestHandler`
Replace the `withContext(Dispatchers.IO)` with `coroutineScope`.
Removes some unused imports.
* Update the `README`
* Update the kdoc in the `Client`
1 parent ab5df7c commit ab2f0b3
File tree
4 files changed
+169
-143
lines changed- clashJ/src
- main/kotlin/com/clashj
- http
- test/kotlin/com/clashj
4 files changed
+169
-143
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
0 commit comments