Skip to content

Commit 8fb209b

Browse files
committed
Ensure error is risen on failed root initialization
1 parent 4d6a6a6 commit 8fb209b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/concurrent/actor.rb

+3-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ def self.current
3030
end
3131

3232
@root = Delay.new do
33-
Core.new(parent: nil, name: '/', class: Root).reference
33+
Core.new(parent: nil, name: '/', class: Root, initialized: ivar = IVar.new).reference.tap do
34+
ivar.no_error!
35+
end
3436
end
3537

3638
# A root actor, a default parent of all actors spawned outside an actor

0 commit comments

Comments
 (0)