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.

Support for annotations to check the current thread (or task's serial)#780

Closed
Artyomcool wants to merge 3 commits into
androidannotations:developandroidannotations/androidannotations:developfrom
Artyomcool:developArtyomcool/androidannotations:developCopy head branch name to clipboard
Closed

Support for annotations to check the current thread (or task's serial)#780
Artyomcool wants to merge 3 commits into
androidannotations:developandroidannotations/androidannotations:developfrom
Artyomcool:developArtyomcool/androidannotations:developCopy head branch name to clipboard

Conversation

@Artyomcool

Copy link
Copy Markdown

Hi,

Lets assume we have a long-term methods that provide result by simply returning that. This allows to make robust and reusable components and easily compose another methods from them.
In some cases it is much easier to control data consistence by restricting threads that allowed to invoke some of them.
I've implemented two annotations:

@SupposeUiThread
@SupposeBackground

It will generate neccessary checks and you can control what happens if expectation fails by

BackgroundExecutor.setWrongThreadListener(...)

@Artyomcool Artyomcool closed this Nov 21, 2013
@Artyomcool

Copy link
Copy Markdown
Author

Sorry, will create separate branch for that

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

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