Skip to content

Instantly share code, notes, and snippets.

@pidster
Created January 22, 2013 11:54
Show Gist options
  • Select an option

  • Save pidster/4594060 to your computer and use it in GitHub Desktop.

Select an option

Save pidster/4594060 to your computer and use it in GitHub Desktop.

Revisions

  1. pidster created this gist Jan 22, 2013.
    8 changes: 8 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    public void runOnWorker(final Handler<Void> handler) {
    Context context = getOrAssignContext();
    context.executeOnWorker(new Runnable() {
    public void run() {
    handler.handle(null);
    }
    });
    }