Skip to content
This repository was archived by the owner on Feb 1, 2021. It is now read-only.
This repository was 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

@ugoamanoh

Description

@ugoamanoh

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions