class Roda::RodaPlugins::Streaming::Stream::Scheduler
using ruby’s default threading support.
The default scheduler to used when streaming, useful for code
def defer(*)
def defer(*) yield end
def initialize(stream)
def initialize(stream) @stream = stream end
def schedule(*)
Close the stream if there is an exception when scheduling,
def schedule(*) yield rescue Exception @stream.close raise end