Actually asynchronous coroutines
See original GitHub issueRight now, the the functions offered by fuel-coroutines
simply start a coroutine which blocks until the request is complete. Ideally, this should actually suspend the coroutine instead of blocking whenever possible.
Issue Analytics
- State:
- Created 5 years ago
- Comments:8
Top Results From Across the Web
Asynchronous programming with coroutines - ProAndroidDev
Async coroutine builder takes coroutine context and start as a parameter where by using start parameter it is possible to define when to...
Read more >Asynchronous programming techniques - Kotlin
Kotlin's approach to working with asynchronous code is using coroutines, which is the idea of suspendable computations, i.e. the idea that a ...
Read more >Kotlin Coroutines by Tutorials, Chapter 5: Async/Await
The async/await pattern is built on two functions: async() to wrap the function call and the resulting value in a coroutine, and await()...
Read more >Async/await in coroutines - Lanky Dan Blog
Async/await is a common feature in many languages (naming might vary), that allows you to execute functions asynchronously while waiting for ...
Read more >Why are kotlin coroutines called asynchronous?
For me this is just a multi threading programming. If we send a blocking code to the coroutine, a thread will be blocked....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I believe this is now merged in? (cc @markGilchrist ). If not, please re-open.
I think the canceling was removed by accident in this commit https://github.com/kittinunf/fuel/commit/ad3e014aee70d7a1fc14fa526f4cb8e3ddc04ffe#diff-e4e7f9c034fdee0e0a5786ff4be1dc4e22c643f6ac23824c20057d40d258a644L21
continuation.invokeOnCancellation { cancel() }
canceled the request when the coroutine was canceled, but the commit refactored the code and removed this callback.