Run_Later simple port for sinatra(it's basically an after_filter that is truly an after filter)
Ruby
Latest commit 405a6db Apr 16, 2009 jaredmdobson Added our link.
Permalink
Failed to load latest commit information.
README Added our link. Apr 16, 2009
run_later.rb inital commit Feb 5, 2009

README

Direct copy of http://github.com/mattmatt/run_later/tree/master by Ported to Rails by Mathias Meyer (http://paperplanes.de) added one line for sinatra

Released under the MIT license


Usage:

require 'rubygems'
require 'sinatra'
require 'run_later'

get '/' do
  run_later do
    #some task that you don't want to block.
    sleep 20
  end
  "Hello World"
end

Contributed to the Community by: http://www.pmamediagroup.com