title: Android method annotation for preventing call from being made on GUI thread
body: <p>In the project I'm currently working on there are plenty of caching which is done on the main thread which makes the app laggy. My plan is to make asynchronous variants of these, but still keeping the synchronous calls for easier chaining when combined in asyncTasks. The problem I have it that I want to prevent the usage of the caching functions in GUI thread in some intuitive way. Any ideas? Is it possible? Is it possible to mark a method with an annotation which prevents it from being called on the GUI thread?</p>