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

Conversation

@Artyomcool
Copy link

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