Skip to content

Instantly share code, notes, and snippets.

@wakim
Last active February 24, 2016 14:27
Show Gist options
  • Select an option

  • Save wakim/2145282cb0297dd8f7d7 to your computer and use it in GitHub Desktop.

Select an option

Save wakim/2145282cb0297dd8f7d7 to your computer and use it in GitHub Desktop.
public class MyTask implements Runnable {
@Override
public void run() {
String content = readSomeContentOfNetwork();
String processedContent = processContent(content);
saveProcessedContentOnDatabase(processedContent);
}
}
new Thread(new MyTask()).start();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment