Skip to content

Handle coroutine cancelation on Activity lifecycle callbacks #48

@lukasz-kalnik-gcx

Description

@lukasz-kalnik-gcx

Support for canceling coroutines when Activity is destroyed is missing.
FeedStore has hardcoded CoroutineScope(Dispatchers.Main) which is not bound to any lifecycle callbacks.
This hardcoded coroutine scope also makes writing unit tests hard (it could be simply a constructor parameter).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions