Skip to content

Commit 213adea

Browse files
committed
Removed EventMachineDeferProxy class.
When I started this gem I was using EventMachine at work and I wanted some of the earlier abstractions to play nicely with EM. So I created EventMachineDeferProxy to faciliate that interoperability. Much has changed sincRemoved EventMachineDeferProxy class. When I started this gem I was using EventMachine at work and I wanted some of the earlier abstractions to play nicely with EM. So I created EventMachineDeferProxy to faciliate that interoperability. Much has changed since then. I no longer feel there is much reason to use this gem with EM. Also, we've worked hard to keep this gem dependency-free and interpreter-neutral. EM integration doesn't really support either of those goals. e then. I no longer feel there is much reason to use this gem with EM. Also, we've worked hard to keep this gem dependency-free and interpreter-neutral. EM integration doesn't really support either of those goals.
1 parent ec1a25d commit 213adea

File tree

4 files changed

+0
-256
lines changed

4 files changed

+0
-256
lines changed

lib/concurrent.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@
3333
require 'concurrent/fixed_thread_pool'
3434
require 'concurrent/immediate_executor'
3535

36-
require 'concurrent/event_machine_defer_proxy' if defined?(EventMachine)
37-
3836
# Modern concurrency tools for Ruby. Inspired by Erlang, Clojure, Scala, Haskell,
3937
# F#, C#, Java, and classic concurrency patterns.
4038
#

lib/concurrent/event_machine_defer_proxy.rb

Lines changed: 0 additions & 22 deletions
This file was deleted.

md/thread_pool.md

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -158,22 +158,6 @@ If for some reason an appliction would be better served by *not* having a global
158158
`NullThreadPool` is provided. The `NullThreadPool` is compatible with the global thread pool but
159159
it is not an actual thread pool. Instead it spawns a new thread on every call to the `post` method.
160160

161-
### EventMachine
162-
163-
The [EventMachine](http://rubyeventmachine.com/) library (source [online](https://github.com/eventmachine/eventmachine))
164-
is an awesome library for creating evented applications. EventMachine provides its own thread pool
165-
and the authors recommend using their pool rather than using Ruby's `Thread`. No sweat,
166-
`concurrent-ruby` is fully compatible with EventMachine. Simple require `eventmachine`
167-
*before* requiring `concurrent-ruby` then replace the global thread pool with an instance
168-
of `EventMachineDeferProxy`:
169-
170-
```ruby
171-
require 'eventmachine' # do this FIRST
172-
require 'concurrent'
173-
174-
$GLOBAL_THREAD_POOL = EventMachineDeferProxy.new
175-
```
176-
177161
## Per-class Thread Pools
178162

179163
Many of the classes in this library use the global thread pool rather than creating new threads.

spec/concurrent/event_machine_defer_proxy_spec.rb

Lines changed: 0 additions & 216 deletions
This file was deleted.

0 commit comments

Comments
 (0)