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

Version Path
rainbows-4.1.0 t/async_sinatra.ru
rainbows-4.0.0 t/async_sinatra.ru
rainbows-3.4.0 t/async_sinatra.ru
rainbows-3.3.0 t/async_sinatra.ru
rainbows-3.2.0 t/async_sinatra.ru
rainbows-3.1.0 t/async_sinatra.ru
rainbows-3.0.0 t/async_sinatra.ru
rainbows-2.1.0 t/async_sinatra.ru
rainbows-2.0.1 t/async_sinatra.ru
rainbows-2.0.0 t/async_sinatra.ru
rainbows-1.0.0 t/async_sinatra.ru
rainbows-1.0.0pre1 t/async_sinatra.ru
rainbows-0.97.0 t/async_sinatra.ru
rainbows-0.96.0 t/async_sinatra.ru
rainbows-0.95.1 t/async_sinatra.ru
rainbows-0.95.0 t/async_sinatra.ru
rainbows-0.94.0 t/async_sinatra.ru
rainbows-0.93.0 t/async_sinatra.ru
rainbows-0.92.0 t/async_sinatra.ru
rainbows-0.91.1 t/async_sinatra.ru