@@ -23,14 +23,14 @@ class Core
2323 # can be used to hook actor instance to any logging system
2424 # @param [Proc] block for class instantiation
2525 def initialize ( opts = { } , &block )
26- @mailbox = Array . new
27- @one_by_one = OneByOne . new
26+ @mailbox = Array . new
27+ @serialized_execution = SerializedExecution . new
2828 # noinspection RubyArgCount
29- @terminated = Event . new
30- @executor = Type! opts . fetch ( :executor , Concurrent . configuration . global_task_pool ) , Executor
31- @children = Set . new
32- @reference = Reference . new self
33- @name = ( Type! opts . fetch ( :name ) , String , Symbol ) . to_s
29+ @terminated = Event . new
30+ @executor = Type! opts . fetch ( :executor , Concurrent . configuration . global_task_pool ) , Executor
31+ @children = Set . new
32+ @reference = Reference . new self
33+ @name = ( Type! opts . fetch ( :name ) , String , Symbol ) . to_s
3434
3535 parent = opts [ :parent ]
3636 @parent_core = ( Type! parent , Reference , NilClass ) && parent . send ( :core )
@@ -180,7 +180,7 @@ def receive_envelope
180180 # Schedules blocks to be executed on executor sequentially,
181181 # sets Actress.current
182182 def schedule_execution
183- @one_by_one . post ( @executor ) do
183+ @serialized_execution . post ( @executor ) do
184184 begin
185185 Thread . current [ :__current_actress__ ] = reference
186186 yield
0 commit comments