Module: Farce::Concurrent

Defined in:
lib/farce/concurrent.rb,
lib/farce/concurrent/event.rb,
lib/farce/concurrent/tuple.rb,
lib/farce/concurrent/local_var.rb,
lib/farce/concurrent/cyclic_barrier.rb,
lib/farce/concurrent/fiber_local_var.rb,
lib/farce/concurrent/count_down_latch.rb,
lib/farce/concurrent/thread_local_var.rb

Overview

Module to replace some functionality of concurrent-ruby with.

Nested in a separate module so it can easily be moved into a dedicated gem (this would only happen on a major release).

Not all of them are full drop-in replacements, especially when it comes to matching superclasses.

If it matches the subset of functionality you need you could replace this:

require "concurrent"

With this:

require "farce"
Concurrent = Farce::Concurrent

If developing a gem or just part of a larger app, you can and should do this under a namespace rather than globally.

Defined Under Namespace

Classes: CountDownLatch, CyclicBarrier, Event, FiberLocalVar, ThreadLocalVar, Tuple

Constant Summary collapse

Array =
Vector
Atom =
Farce::Atom
AtomicBoolean =
Flag
AtomicFixnum =
Counter
Exchanger =
Farce::Exchanger
Hash =
Farce::Map
Lock =
Farce::Lock
Map =
Farce::Map
ReadWriteLock =
Farce::ReadWriteLock
LockLocalVar =

Alias for FiberLocalVar to maintain compatibility with LockLocalVar

FiberLocalVar