Skip to content
This repository was archived by the owner on May 23, 2025. It is now read-only.

Conversation

@connyduck
Copy link
Collaborator

The main difference between the two is that NetworkResult is no inline class. This has two advantages

  • No weird ClassCastException crashes all over the place
  • It also works without suspend

Steps to reproduce one instance of the crash: https://chaos.social/@ConnyDuck/108353117857711488
Code of NetworkResult Calladapter: https://github.com/connyduck/networkresult-calladapter

Regarding the weird crash, maybe I will try to isolate it so I can report it to Kotlin and/or Retrofit

@connyduck connyduck requested a review from charlag May 29, 2022 18:58
Copy link
Collaborator

@charlag charlag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems straightforward enough!

@connyduck connyduck merged commit e1c8461 into develop May 30, 2022
@connyduck connyduck deleted the fix_resultadapter branch May 30, 2022 18:03
@Lakoja Lakoja mentioned this pull request Jun 5, 2022
1 task
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants