Class: Thread

Inherits:
Object show all
Defined in:
lib/vendor/celluloid/lib/celluloid/core_ext.rb

Overview

Monkeypatch Thread to allow lazy access to its Celluloid::Mailbox

Direct Known Subclasses

Dataflow::Actor

Class Method Summary collapse

Class Method Details

.mailboxObject

Retrieve the mailbox for the current thread or lazily initialize it



6
7
8
# File 'lib/vendor/celluloid/lib/celluloid/core_ext.rb', line 6

def self.mailbox
  current[:mailbox] ||= Celluloid::Mailbox.new
end