Sha256: 753559bbc9b61b2daa195e4eaed11c265405d9c4c82356cdd9a75de7ea6f567f
Contents?: true
Size: 344 Bytes
Versions: 69
Compression:
Stored size: 344 Bytes
Contents
require 'celluloid/fiber' # 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 class Fiber # Celluloid::Task associated with this Fiber attr_accessor :task end
Version data entries
69 entries across 69 versions & 2 rubygems