Skip to content

Instantly share code, notes, and snippets.

@charger
charger / basic.ru
Created October 19, 2012 13:40 — forked from Paxa/basic.ru
Async request handling with sinatra and EM, freeze if request not exist URL
#!/usr/bin/env rackup -Ilib:../lib -s thin
# async message handling
# using gem https://github.com/raggi/async_sinatra
require 'sinatra/async'
require "em-http-request"
require 'open-uri'
require "em-synchrony"