@@ -42,7 +42,9 @@ def on_message(message)
42
42
# @param block for actress_class instantiation
43
43
# @param args see {.spawn_optionify}
44
44
def self . spawn ( *args , &block )
45
- warn '[EXPERIMENTAL] A full release of `Actress`, renamed `Actor`, is expected in the 0.7.0 release.'
45
+ experimental_acknowledged? or
46
+ warn '[EXPERIMENTAL] A full release of `Actress`, renamed `Actor`, is expected in the 0.7.0 release.'
47
+
46
48
if Actress . current
47
49
Core . new ( spawn_optionify ( *args ) . merge ( parent : Actress . current ) , &block ) . reference
48
50
else
@@ -52,7 +54,6 @@ def self.spawn(*args, &block)
52
54
53
55
# as {.spawn} but it'll raise when Actor not initialized properly
54
56
def self . spawn! ( *args , &block )
55
- warn '[EXPERIMENTAL] A full release of `Actress`, renamed `Actor`, is expected in the 0.7.0 release.'
56
57
spawn ( spawn_optionify ( *args ) . merge ( initialized : ivar = IVar . new ) , &block ) . tap { ivar . no_error! }
57
58
end
58
59
@@ -71,5 +72,13 @@ def self.spawn_optionify(*args)
71
72
args : args [ 2 ..-1 ] }
72
73
end
73
74
end
75
+
76
+ def self . i_know_it_is_experimental!
77
+ @experimental_acknowledged = true
78
+ end
79
+
80
+ def self . experimental_acknowledged?
81
+ !!@experimental_acknowledged
82
+ end
74
83
end
75
84
end
0 commit comments