This gem is a tiny wrapper for async that can create and execute a queue of tasks, each of the task run in a separated thread.
To use this gem you can simply install it with gem :
gem install tiny_conveyor
or add the following line to your Gemfile :
gem 'tiny_conveyor'
require 'tiny_conveyor'
conveyor = TinyConveyor.new
action = proc { puts 'Run in a separated thread' }
conveyor.add_parcel('first action', 'a simple task that print a sentence', action)
conveyor.start_belt
conveyor.remove_parcel_by_uuid('uuid_of_the_parcel')
conveyor.running?
conveyor.parcels
Icons made by xnimrodx from flaticon