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

Version Path
engineyard-serverside-1.5.23.ruby19.15 lib/vendor/celluloid/lib/celluloid/core_ext.rb
engineyard-serverside-1.5.23.ruby19.14 lib/vendor/celluloid/lib/celluloid/core_ext.rb
engineyard-serverside-1.5.23.ruby19.13 lib/vendor/celluloid/lib/celluloid/core_ext.rb
engineyard-serverside-1.5.23.ruby19.12 lib/vendor/celluloid/lib/celluloid/core_ext.rb
engineyard-serverside-1.5.23.ruby19.11 lib/vendor/celluloid/lib/celluloid/core_ext.rb
engineyard-serverside-1.5.23.ruby19.10 lib/vendor/celluloid/lib/celluloid/core_ext.rb
celluloid-0.7.2 lib/celluloid/core_ext.rb
engineyard-serverside-1.5.23.ruby19.9 lib/vendor/celluloid/lib/celluloid/core_ext.rb
celluloid-0.7.1 lib/celluloid/core_ext.rb