Skip to content

Commit cfedf77

Browse files
committed
Fixed 'private_attribute?' warning.
1 parent 9d369f1 commit cfedf77

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/concurrent/executor/ruby_executor_service.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,13 @@ def wait_for_termination(timeout = nil)
5151

5252
private
5353

54-
attr_reader :stop_event, :stopped_event
54+
def stop_event
55+
@stop_event
56+
end
57+
58+
def stopped_event
59+
@stopped_event
60+
end
5561

5662
def ns_shutdown_execution
5763
stopped_event.set

0 commit comments

Comments
 (0)