Skip to content
This repository has been archived by the owner on Feb 1, 2021. It is now read-only.

Demo best-practice coroutine calling convention for SDK methods that use Context #105

Open
ugoamanoh opened this issue Oct 10, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@ugoamanoh
Copy link
Contributor

Goal

Coroutines don't fix every asynchrony problem that android may encounter but they do provide ways of working with the component lifecycle.

Our demo-app and sample code should display the proper way to build coroutine contexts that includes lifecycle-aware jobs and intentional exception handler.

References

Acceptance

  • A coroutine exception handler is created in demoapp
  • Exception handler is added to coroutine context
  • Coroutine context is canceled on activity destroy - or, even better on ViewModel release
  • All Suppress("LabeledExpression") annotations that reference activity instances are removed from demoapp

Testing

TBD

@ugoamanoh ugoamanoh added the enhancement New feature or request label Oct 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant