123456789_123456789_123456789_123456789_123456789_

Class: Concurrent::ErlangActor::Ask

Class Attribute Summary

Class Method Summary

Synchronization::Object - Inherited

.atomic_attribute?, .atomic_attributes,
.attr_atomic

Creates methods for reading and writing to a instance variable with volatile (Java) semantic as .attr_volatile does.

.attr_volatile

Creates methods for reading and writing (as attr_accessor does) to a instance variable with volatile (Java) semantic.

.ensure_safe_initialization_when_final_fields_are_present

For testing purposes, quite slow.

.new

Has to be called by children.

.safe_initialization!, .define_initialize_atomic_fields

Synchronization::AbstractObject - Inherited

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(message, probe) ⇒ Ask

Raises:

  • (ArgumentError)
[ GitHub ]

  
# File 'lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb', line 1260

def initialize(message, probe)
  super()
  @message = message
  @probe   = probe
  raise ArgumentError, 'probe is not Resolvable' unless probe.is_a? Promises::Resolvable
end

Instance Attribute Details

#message (readonly)

[ GitHub ]

  
# File 'lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb', line 1258

attr_reader :message, :probe

#probe (readonly)

[ GitHub ]

  
# File 'lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb', line 1258

attr_reader :message, :probe