lib/propono.rb in propono-0.7.0 vs lib/propono.rb in propono-0.8.0
- old
+ new
@@ -1,9 +1,11 @@
# Propono
#
# Propono is a pub/sub gem built on top of Amazon Web Services (AWS). It uses Simple Notification Service (SNS) and Simple Queue Service (SQS) to seamlessly pass messages throughout your infrastructure.
+require "thread/pool"
+
require "propono/version"
require 'propono/propono_error'
require 'propono/logger'
require 'propono/configuration'
@@ -24,9 +26,11 @@
# Propono is a pub/sub gem built on top of Amazon Web Services (AWS).
# It uses Simple Notification Service (SNS) and Simple Queue Service (SQS)
# to seamlessly pass messages throughout your infrastructure.
module Propono
+
+ WORKER_POOL = Thread.pool(4)
# Propono configuration settings.
#
# Settings should be set in an initializer or using some
# other method that insures they are set before any