Skip to content

Instantly share code, notes, and snippets.

@pidster
Created January 22, 2013 11:54
Show Gist options
  • 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