Registry / web-framework / async-sinatra

async-sinatra

JSON →
library1.3.0rbrubygemsunverified

A Sinatra plugin for asynchronous responses under async webservers like Thin, Rainbows, and Zbatery.

gem install async_sinatra
INSTALL
IMPORT
SIG · ASYNC-SINATRA
A
async-sinatra
web-frameworkrubyv1.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Sinatra::Async
require 'async_sinatra'

Define asynchronous routes in Sinatra.

require 'async_sinatra' class App < Sinatra::Base register Sinatra::Async aget '/slow' do body { sleep 1; 'done' } end end
Debug
Known issues
gotchaRequires knowledge of EventMachine and async patterns.
fix
Review EventMachine documentation before using.
affects: >= 1.0.0
Upgrade
Version history
1.3.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
OpenAI (training)
1
Resources
async-sinatra — gem install async-sinatra · libregistry