File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -9,21 +9,21 @@ class SimpleActorRef
99 include ActorRef
1010
1111 def initialize ( actor , opts = { } )
12- @actor = actor
13- @mutex = Mutex . new
14- @one_by_one = OneByOne . new
15- @executor = OptionsParser ::get_executor_from ( opts )
16- @stop_event = Event . new
17- @reset_on_error = opts . fetch ( :reset_on_error , true )
12+ @actor = actor
13+ @mutex = Mutex . new
14+ @one_by_one = OneByOne . new
15+ @executor = OptionsParser ::get_executor_from ( opts )
16+ @stop_event = Event . new
17+ @reset_on_error = opts . fetch ( :reset_on_error , true )
1818 @exception_class = opts . fetch ( :rescue_exception , false ) ? Exception : StandardError
19- @args = opts . fetch ( :args , [ ] ) if @reset_on_error
19+ @args = opts . fetch ( :args , [ ] ) if @reset_on_error
2020
2121 @actor . define_singleton_method ( :shutdown , &method ( :set_stop_event ) )
2222 @actor . on_start
2323 end
2424
2525 def running?
26- ! @stop_event . set?
26+ not @stop_event . set?
2727 end
2828
2929 def shutdown?
You can’t perform that action at this time.
0 commit comments