class Roda::RodaPlugins::Streaming::Stream

def callback(&block)

Add the given block as a callback to call when the block closes.
def callback(&block)
  return yield if closed?
  @callbacks << block
end