Skip to content

Commit

Permalink
Reduce logging noise if reactor is inspected.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Mar 27, 2024
1 parent 80dac9d commit a720921
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/async/reactor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ def initialize(parent = nil, selector: self.class.selector, logger: nil)
@unblocked = []
end

def inspect
"#<#{self.class} children=#{@children&.size} stopped=#{stopped?}>"
end

attr :scheduler
attr :logger

Expand Down

0 comments on commit a720921

Please sign in to comment.