From f7be33bf78f63edbd93e8cc92bdc53bf14f6b961 Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Tue, 24 Nov 2015 19:23:01 -0800 Subject: [PATCH] Remove Celluloid::IO docs The timeout backend is broken/nonexistent. Until it's implemented, we shouldn't advertise Celluloid::IO support. Users of Celluloid who want parallel requests can use a thread pool. --- README.md | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/README.md b/README.md index 444662a0..8da0c3a7 100644 --- a/README.md +++ b/README.md @@ -276,30 +276,6 @@ HTTP.persistent('http://en.wikipedia.org') do |http| end ``` -### Celluloid::IO Support - -http.rb makes it simple to make multiple concurrent HTTP requests from a -Celluloid::IO actor. Here's a parallel HTTP fetcher combining http.rb with -Celluloid::IO: - -```ruby -require "celluloid/io" -require "http" - -class HttpFetcher - include Celluloid::IO - - def fetch(url) - HTTP.get(url, socket_class: Celluloid::IO::TCPSocket) - end -end -``` - -There's a little more to it, but that's the core idea! - -* [Full parallel HTTP fetcher example](https://github.com/httprb/http/wiki/Parallel-requests-with-Celluloid%3A%3AIO) -* See also: [Celluloid::IO](https://github.com/celluloid/celluloid-io) - ### Timeouts By default, HTTP does not timeout on a request. You can enable per operation