joevandyk / wisper-que

Provides Wisper with asynchronous event publishing using Que actors.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Provides Wisper with asynchronous event publishing using Que actors.

License:MIT License


Languages

Language:Ruby 96.2%Language:Shell 3.8%