Sha256: d89248cc9236913b4586340df99413df8a0562a5b9037d0a444d7a8857318c7d

Contents?: true

Size: 307 Bytes

Versions: 1

Compression:

Stored size: 307 Bytes

Contents

module Broker
  module Utility
   
   def watcher(last_words)
     yield
   rescue Exception => ex
     raise ex
   end
   
   def safe_thread(name, &block)
     Thread.new do
       watcher(name, &block)
     end
   end
   
   def timestamp
     Time.now.strftime("%Y-%m-%dT%H.%M.%S")
   end
    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
broker-0.1.2 lib/broker/utility.rb