Created
October 30, 2016 18:53
-
-
Save merqlove/6fa074c7bfa993121d018aa414670450 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Concurrent | |
.future(thread_pool) do | |
update_spin(spin, title: "Resizing image #{image.id}") | |
service.run(image) | |
end | |
.then do |r| | |
update_spin(spin, title: "Resized image #{r.id}") | |
r | |
end | |
.rescue { |_| nil } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment