Skip to content

Provides Wisper with asynchronous event publishing using Que actors.

License

Notifications You must be signed in to change notification settings

joevandyk/wisper-que

Repository files navigation

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.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published