Skip to content

Commit a3cda29

Browse files
committed
Added 'experimentatal' warnings to Actress factory methods.
1 parent c9a9d89 commit a3cda29

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/concurrent/actress.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ def on_message(message)
4242
# @param block for actress_class instantiation
4343
# @param args see {.spawn_optionify}
4444
def self.spawn(*args, &block)
45+
warn '[EXPERIMENTAL] A full release of `Actress`, renamed `Actor`, is expected in the 0.7.0 release.'
4546
if Actress.current
4647
Core.new(spawn_optionify(*args).merge(parent: Actress.current), &block).reference
4748
else
@@ -51,6 +52,7 @@ def self.spawn(*args, &block)
5152

5253
# as {.spawn} but it'll raise when Actor not initialized properly
5354
def self.spawn!(*args, &block)
55+
warn '[EXPERIMENTAL] A full release of `Actress`, renamed `Actor`, is expected in the 0.7.0 release.'
5456
spawn(spawn_optionify(*args).merge(initialized: ivar = IVar.new), &block).tap { ivar.no_error! }
5557
end
5658

0 commit comments

Comments
 (0)