Sha256: 8139f5b13565867d027fb4441a8447060c90dc1f521a8b9321cf54cd77650325

Contents?: true

Size: 362 Bytes

Versions: 2

Compression:

Stored size: 362 Bytes

Contents

# encoding: utf-8

module FiniteMachine
  # A mixin to allow sharing of thread context
  module ThreadContext

    # @api public
    def event_queue
      Thread.current[:finite_machine_event_queue]
    end

    # @api public
    def event_queue=(value)
      Thread.current[:finite_machine_event_queue] = value
    end
  end # ThreadContext
end # FiniteMachine

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
finite_machine-0.11.1 lib/finite_machine/thread_context.rb
finite_machine-0.11.0 lib/finite_machine/thread_context.rb