{"id":13492903,"url":"https://github.com/raggi/async_sinatra","last_synced_at":"2025-05-16T05:06:42.677Z","repository":{"id":530679,"uuid":"159648","full_name":"raggi/async_sinatra","owner":"raggi","description":"A plugin for Sinatra to provide a DSL extension for using Thin for asynchronous responses","archived":false,"fork":false,"pushed_at":"2017-05-23T00:02:17.000Z","size":73,"stargazers_count":433,"open_issues_count":1,"forks_count":40,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-05-13T05:12:27.518Z","etag":null,"topics":["async","eventmachine","rack","ruby","sinatra","thin"],"latest_commit_sha":null,"homepage":"http://rubyforge.org/libraggi/async_sinatra","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/raggi.png","metadata":{"files":{"readme":"README.rdoc","changelog":"CHANGELOG.rdoc","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2009-03-26T02:04:57.000Z","updated_at":"2024-08-19T12:04:13.000Z","dependencies_parsed_at":"2022-07-16T13:30:42.990Z","dependency_job_id":null,"html_url":"https://github.com/raggi/async_sinatra","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raggi%2Fasync_sinatra","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raggi%2Fasync_sinatra/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raggi%2Fasync_sinatra/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raggi%2Fasync_sinatra/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raggi","download_url":"https://codeload.github.com/raggi/async_sinatra/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254471061,"owners_count":22076585,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["async","eventmachine","rack","ruby","sinatra","thin"],"created_at":"2024-07-31T19:01:10.307Z","updated_at":"2025-05-16T05:06:42.628Z","avatar_url":"https://github.com/raggi.png","language":"Ruby","readme":"= async_sinatra\n\nhttp://github.com/raggi/async_sinatra\n\n== DESCRIPTION:\n\nA Sinatra plugin to provide convenience whilst performing asynchronous\nresponses inside of the Sinatra framework running under async webservers.\n\nTo properly utilise this package, some knowledge of EventMachine and/or\nasynchronous patterns is recommended.\n\nCurrently, supporting servers include:\n\n* Thin\n* Rainbows\n* Zbatery\n\n== SYNOPSIS:\n\nA quick example:\n\n require 'sinatra/async'\n\n class AsyncTest \u003c Sinatra::Base\n   register Sinatra::Async\n\n   aget '/' do\n     body \"hello async\"\n   end\n\n   aget '/delay/:n' do |n|\n     EM.add_timer(n.to_i) { body { \"delayed for #{n} seconds\" } }\n   end\n\n end\n\nSee Sinatra::Async for more details.\n\n== REQUIREMENTS:\n\n* Sinatra (\u003e= 1.3.2)\n* An async webserver\n\n== INSTALL:\n\n* gem install async_sinatra\n\n== LICENSE:\n\n(The MIT License)\n\nCopyright (c) 2009 James Tucker\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","funding_links":[],"categories":["Concurrency"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraggi%2Fasync_sinatra","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraggi%2Fasync_sinatra","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraggi%2Fasync_sinatra/lists"}