Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

Threading cancelling #478

@melnikovdv

Description

@melnikovdv

Hi. Yesterday I asked at google groups about thread cancelling in AndroidAnnotations. And Mathieu adviced me to explan this feature in issue.

It' really cool to use @background and @UIView instead of AsyncTask. But not all features of AsyncTask are covered. In our project we have a lot of code, that uses its cancel feature (onCancelled()).
Let me show you couple of most common cases:

  • Sometimes we run ProgressDialog, while retrieving information from internet, and when user cancels this dialog we want to dismiss it and finish the whole activity. I saw many cases of such behaviour in other apps on GitHub
  • Sometimes background task should be stopped and runned again with new parameters, that occured somehow.

It would be really useful to have such feature of cancelling background tasks. Don't you think so?

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