I just released the first version of motion-async, which gives you a nice wrapper around Android's AsyncTask class.
AsyncTask is good for short, non-repeating tasks that should run off the main UI thread. motion-async makes this very simple:
end.on(:completion) do |data|
See the Github page for more examples and documentation. Enjoy!