Skip to content

Commit 0f0a792

Browse files
committed
Completely deprecated UsesGlobalThreadPool in lieu of :executor option.
1 parent aec406a commit 0f0a792

File tree

4 files changed

+22
-120
lines changed

4 files changed

+22
-120
lines changed

lib/concurrent.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
require 'concurrent/immediate_executor'
3838
require 'concurrent/per_thread_executor'
3939
require 'concurrent/thread_pool_executor'
40-
require 'concurrent/uses_global_thread_pool'
4140

4241
# Modern concurrency tools for Ruby. Inspired by Erlang, Clojure, Scala, Haskell,
4342
# F#, C#, Java, and classic concurrency patterns.

lib/concurrent/uses_global_thread_pool.rb

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

spec/concurrent/ivar_spec.rb

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
require 'spec_helper'
22
require_relative 'dereferenceable_shared'
33
require_relative 'obligation_shared'
4-
require_relative 'uses_global_thread_pool_shared'
54

65
module Concurrent
76

87
describe IVar do
98

109
let!(:value) { 10 }
11-
10+
1211
subject do
1312
i = IVar.new
1413
i.set(14)
@@ -17,33 +16,33 @@ module Concurrent
1716

1817
context 'behavior' do
1918

20-
# obligation
19+
# obligation
2120

22-
let!(:fulfilled_value) { 10 }
23-
let(:rejected_reason) { StandardError.new('Boom!') }
21+
let!(:fulfilled_value) { 10 }
22+
let(:rejected_reason) { StandardError.new('Boom!') }
2423

25-
let(:pending_subject) do
26-
@i = IVar.new
27-
Thread.new do
28-
sleep(3)
29-
@i.set(fulfilled_value)
24+
let(:pending_subject) do
25+
@i = IVar.new
26+
Thread.new do
27+
sleep(3)
28+
@i.set(fulfilled_value)
29+
end
30+
@i
3031
end
31-
@i
32-
end
3332

34-
let(:fulfilled_subject) do
35-
i = IVar.new
36-
i.set(fulfilled_value)
37-
i
38-
end
33+
let(:fulfilled_subject) do
34+
i = IVar.new
35+
i.set(fulfilled_value)
36+
i
37+
end
3938

40-
let(:rejected_subject) do
41-
i = IVar.new
42-
i.fail(rejected_reason)
43-
i
44-
end
39+
let(:rejected_subject) do
40+
i = IVar.new
41+
i.fail(rejected_reason)
42+
i
43+
end
4544

46-
it_should_behave_like :obligation
45+
it_should_behave_like :obligation
4746

4847
# dereferenceable
4948

spec/concurrent/uses_global_thread_pool_shared.rb

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

0 commit comments

Comments
 (0)