question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Actually asynchronous coroutines

See original GitHub issue

Right 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:closed
  • Created 5 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
SleeplessBytecommented, Oct 18, 2018

I believe this is now merged in? (cc @markGilchrist ). If not, please re-open.

0reactions
Legion2commented, Dec 20, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found