Sha256: 23e341cded4f097196bacba45fc58e0afe600789b46db4381b0f9f154f26593f

Contents?: true

Size: 231 Bytes

Versions: 3

Compression:

Stored size: 231 Bytes

Contents

# Monkeypatch Thread to allow lazy access to its Celluloid::Mailbox
class Thread
  # Retrieve the mailbox for the current thread or lazily initialize it
  def self.mailbox
    current[:mailbox] ||= Celluloid::Mailbox.new
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
celluloid-0.7.0 lib/celluloid/core_ext.rb
celluloid-0.6.2 lib/celluloid/core_ext.rb
celluloid-0.6.1 lib/celluloid/core_ext.rb