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-5.2.1 t/async_sinatra.ru
rainbows-5.2.0 t/async_sinatra.ru
rainbows-5.1.1 t/async_sinatra.ru
rainbows-5.1.0 t/async_sinatra.ru
rainbows-5.0.0.5.ge717 t/async_sinatra.ru
rainbows-5.0.0 t/async_sinatra.ru
rainbows-4.7.0 t/async_sinatra.ru
rainbows-4.6.2 t/async_sinatra.ru
rainbows-4.6.1 t/async_sinatra.ru
rainbows-4.6.0.4.g4108 t/async_sinatra.ru
rainbows-4.6.0 t/async_sinatra.ru
rainbows-4.5.0 t/async_sinatra.ru
rainbows-4.4.3 t/async_sinatra.ru
rainbows-4.4.2 t/async_sinatra.ru
rainbows-4.4.1.1.gd5c8c t/async_sinatra.ru
rainbows-4.4.1 t/async_sinatra.ru
rainbows-4.4.0 t/async_sinatra.ru
rainbows-4.3.1 t/async_sinatra.ru
rainbows-4.3.0 t/async_sinatra.ru
rainbows-4.2.0 t/async_sinatra.ru