Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
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

Copy link
Copy link
@melnikovdv

Description

@melnikovdv
Issue body actions

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?

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.