We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9a9d89 commit a3cda29Copy full SHA for a3cda29
1 file changed
lib/concurrent/actress.rb
@@ -42,6 +42,7 @@ def on_message(message)
42
# @param block for actress_class instantiation
43
# @param args see {.spawn_optionify}
44
def self.spawn(*args, &block)
45
+ warn '[EXPERIMENTAL] A full release of `Actress`, renamed `Actor`, is expected in the 0.7.0 release.'
46
if Actress.current
47
Core.new(spawn_optionify(*args).merge(parent: Actress.current), &block).reference
48
else
@@ -51,6 +52,7 @@ def self.spawn(*args, &block)
51
52
53
# as {.spawn} but it'll raise when Actor not initialized properly
54
def self.spawn!(*args, &block)
55
56
spawn(spawn_optionify(*args).merge(initialized: ivar = IVar.new), &block).tap { ivar.no_error! }
57
end
58
0 commit comments