Skip to content

Instantly share code, notes, and snippets.

@pidster
Created January 22, 2013 11:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pidster/4594060 to your computer and use it in GitHub Desktop.
Save pidster/4594060 to your computer and use it in GitHub Desktop.
Sample of runOnWorker() implementation.
public void runOnWorker(final Handler<Void> handler) {
Context context = getOrAssignContext();
context.executeOnWorker(new Runnable() {
public void run() {
handler.handle(null);
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment