module Sinatra::RunLater::InstanceMethods
Public Instance Methods
run_later(&block)
click to toggle source
# File lib/sinatra/run-later.rb, line 23 def run_later(&block) if RunLater.run_now? block.call else @@run_later ||= RunLater::Worker.instance RunLater.queue << block end end