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
9
9
include ActorRef
10
10
11
11
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 )
18
18
@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
20
20
21
21
@actor . define_singleton_method ( :shutdown , &method ( :set_stop_event ) )
22
22
@actor . on_start
23
23
end
24
24
25
25
def running?
26
- ! @stop_event . set?
26
+ not @stop_event . set?
27
27
end
28
28
29
29
def shutdown?
You can’t perform that action at this time.
0 commit comments