Sha256: e692833a978c160af862072404b6f7654fb23aa1d46cb742cde1a74bd468f2a9
Contents?: true
Size: 280 Bytes
Versions: 50
Compression:
Stored size: 280 Bytes
Contents
# See http://github.com/raggi/async_sinatra # gem install async_sinatra -v0.1.5 require 'sinatra/async' class AsyncTest < Sinatra::Base register Sinatra::Async aget '/:n' do |n| EM.add_timer(n.to_i) { body { "delayed for #{n} seconds\n" } } end end run AsyncTest.new
Version data entries
50 entries across 50 versions & 1 rubygems