README.md in asynchronic-0.0.1 vs README.md in asynchronic-0.1.0

- old
+ new

@@ -22,79 +22,9 @@ $ gem install asynchronic ## Usage -### Basic usage - - class Job - extend Asynchronic::Pipeline - - step :step_name do - ... - end - end - - Job.run - - Asynchronic::Worker.start - -### Enque job in specific queue - - class Job - extend Asynchronic::Pipeline - - queue :queue_name - - step :step_name do - ... - end - end - - Job.run - - Asynchronic::Worker.start :queue_name - -### Pipeline with shared context - - class Job - extend Asynchronic::Pipeline - - step :first do |ctx| - ctx[:c] = ctx[:a] + ctx[:b] - 100 - end - - step :second do |ctx, input| - input * ctx[:c] # 300 - end - end - - Job.run a: 1, b: 2 - - Asynchronic::Worker.start - -### Specify queue for each step - - class Job - extend Asynchronic::Pipeline - - step :first_queue, queue: :queue1 do - ... - end - - step :second_queue, queue: ->(ctx){ctx[:dynamic_queue]} do - ... - end - end - - Job.run dynamic_queue: :queue2 - - [:queue1, :queue2].map do |queue| - Thread.new do - Asynchronic::Worker.start queue - end - end ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`)