Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 565 Bytes

README.md

File metadata and controls

37 lines (27 loc) · 565 Bytes

Wisper::Que

Provides Wisper with asynchronous event publishing using Que actors.

Installation

gem 'wisper-que'

Usage

require 'wisper/que'

class Joe
  include Wisper::Publisher
  def call
    broadcast(:sup, 'joe')
  end
end

class SomeJob
  def self.sup(args)
    puts "i got #{ args }"
  end
end

joe = Joe.new
joe.subscribe(SomeJob, async: true)
joe.call

Contributing

Yes please, either submit a PR or open an issue first to discuss your thoughts.