Run_Later simple port for sinatra(it's basically an after_filter that is truly an after filter)
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README
run_later.rb

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