Skip to content

Commit 45bcb66

Browse files
committed
Ensure each file can be required separately
1 parent 529c078 commit 45bcb66

37 files changed

+178
-84
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,12 @@ Everything within this gem can be loaded simply by requiring it:
271271
require 'concurrent'
272272
```
273273

274-
*Requiring only specific abstractions from Concurrent Ruby is not yet supported.*
274+
You can also require a specific abstraction [part of the public documentation](https://ruby-concurrency.github.io/concurrent-ruby/master/index.html) since concurrent-ruby 1.2.0, for example:
275+
```ruby
276+
require 'concurrent/map'
277+
require 'concurrent/atomic/atomic_reference'
278+
require 'concurrent/executor/fixed_thread_pool'
279+
```
275280

276281
To use the tools in the Edge gem it must be required separately:
277282

lib/concurrent-ruby-edge/concurrent/actor/behaviour/abstract.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
require 'concurrent/concern/logging'
2+
require 'concurrent/actor/type_check'
3+
require 'concurrent/actor/internal_delegations'
24

35
module Concurrent
46
module Actor

lib/concurrent-ruby-edge/concurrent/actor/behaviour/awaits.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
require 'concurrent/actor/behaviour/abstract'
2+
13
module Concurrent
24
module Actor
35
module Behaviour

lib/concurrent-ruby-edge/concurrent/actor/behaviour/buffer.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
require 'concurrent/actor/behaviour/abstract'
2+
13
module Concurrent
24
module Actor
35
module Behaviour

lib/concurrent-ruby-edge/concurrent/actor/behaviour/errors_on_unknown_message.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
require 'concurrent/actor/behaviour/abstract'
2+
13
module Concurrent
24
module Actor
35
module Behaviour

lib/concurrent-ruby-edge/concurrent/actor/behaviour/executes_context.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
require 'concurrent/actor/behaviour/abstract'
2+
13
module Concurrent
24
module Actor
35
module Behaviour

lib/concurrent-ruby-edge/concurrent/actor/behaviour/linking.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
require 'concurrent/actor/behaviour/abstract'
2+
13
module Concurrent
24
module Actor
35
module Behaviour

lib/concurrent-ruby-edge/concurrent/actor/behaviour/pausing.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
require 'concurrent/actor/behaviour/abstract'
2+
13
module Concurrent
24
module Actor
35
module Behaviour

lib/concurrent-ruby-edge/concurrent/actor/behaviour/removes_child.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
require 'concurrent/actor/behaviour/abstract'
2+
13
module Concurrent
24
module Actor
35
module Behaviour

lib/concurrent-ruby-edge/concurrent/actor/behaviour/sets_results.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
require 'concurrent/actor/behaviour/abstract'
2+
13
module Concurrent
24
module Actor
35
module Behaviour

0 commit comments

Comments
 (0)