Simple asynchronous interactors using Sucker Punch
Add this line to your application's Gemfile:
gem 'interactor-async'
And then execute:
$ bundle
Or install it yourself as:
$ gem install interactor-async
Interactor Async utilizes Sucker Punch which is built using Celluloid actors to run jobs asychronously.
class DoSomething
include Interactor::Async
def perform
# do something
end
end
- Fork it ( http://github.com//interactor-async/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request