Skip to content

Instantly share code, notes, and snippets.

@noeticpenguin
Forked from adelevie/hud2.rb
Created June 5, 2013 10:53
Show Gist options
  • Save noeticpenguin/5713091 to your computer and use it in GitHub Desktop.
Save noeticpenguin/5713091 to your computer and use it in GitHub Desktop.
MBProgressHUD.showHUDAddedTo(@view, animated:true)
BW::Reactor.defer(proc do
@posts = Post.query.find
end, proc do
MBProgressHUD.hideHUDForView(@view, animated:true)
end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment