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.

Coroutine API deprecation as of v.0.23.0

See original GitHub issue

The current version of Fuel relies on Kotlin coroutines 0.22.5, the latest being 0.23.4 as of writing.

0.23.0 brought some quite big changes and Fuel will currently break when using this version.

https://github.com/Kotlin/kotlinx.coroutines/blob/master/CHANGES.md#version-0230

In Coroutines.kt we make use of CancellableContinuation.invokeOnCompletion which is now deprecated (interestingly on my machine this method no longer exists). It sounds like the semantics surrounding this were changed anyway which may be causing other issues.

From the docs it looks like it needs to be replaced with invokeOnCancellation instead. There are a few other outstanding issues raised for coroutines so maybe we can merge this in with one of those.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
markGilchristcommented, Jun 30, 2018

@raharrison I am working on a PR as you know I am happy to make these changes in the pr

0reactions
raharrisoncommented, Jul 9, 2018

Closed by #369

Read more comments on GitHub >

github_iconTop Results From Across the Web

Coroutine API deprecation as of v.0.23.0 · Issue #368 · kittinunf/fuel ...
In Coroutines.kt we make use of CancellableContinuation.invokeOnCompletion which is now deprecated (interestingly on my machine this method no longer exists).
Read more >
Change log for kotlinx.coroutines - GitHub
The old API is deprecated for removal, but the new API is based on the similar ... Version 0.23.0 * Kotlin 1.2.41 *...
Read more >
Changelog — apispec 6.0.2 documentation
This is deprecated since marshmallow 3.10. apispec is still compatible with marshmallow >=3,<3.10 but tests now require marshmallow >=3.10. (#675) ...
Read more >
eventlet - PyPI
It uses epoll or libevent for highly scalable non-blocking I/O. Coroutines ensure that the developer uses a ... https://img.shields.io/pypi/v/eventlet ...
Read more >
Changelog — Zeep 4.1.0 documentation
Add support for tornado async transport via gen.coroutine (#530, ... Refactor the implementation of wsdl:arrayType too make the API more pythonic (backwards ...
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