Exception: Holder::StalledSinkError

Inherits:
Error
  • Object
show all
Defined in:
lib/holder/stalled_sink_error.rb

Overview

Recorded in Handle#pump_error when wait gave up on a redirected out: sink that would not drain within its drain_grace: the sink's pump was interrupted and the child's still-buffered output discarded, so the redirect is incomplete. A healthy sink that is merely slower than the default can be granted more patience via wait(drain_grace:).

Instance Method Summary collapse

Constructor Details

#initialize(drain_grace) ⇒ StalledSinkError

Returns a new instance of StalledSinkError.



9
10
11
# File 'lib/holder/stalled_sink_error.rb', line 9

def initialize(drain_grace)
  super("out: sink still undrained after #{drain_grace}s; remaining output discarded")
end