Skip to content

Commit accacce

Browse files
committed
Updated deprecation warnings in Actor.
1 parent a3cda29 commit accacce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/concurrent/actor/actor.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def initialize(queue)
179179
#
180180
# @deprecated +Actor+ is being replaced with a completely new framework prior to v1.0.0
181181
def self.pool(count, *args, &block)
182-
warn '[DEPRECATED] `Actor` is deprecated and will be replaced with `ActorContext`.'
182+
warn '[DEPRECATED] `Actor` is deprecated and will be replaced with `Actress`.'
183183
raise ArgumentError.new('count must be greater than zero') unless count > 0
184184
mailbox = Queue.new
185185
actors = count.times.collect do
@@ -212,15 +212,15 @@ def self.pool(count, *args, &block)
212212
#
213213
# @!visibility public
214214
def act(*message)
215-
warn '[DEPRECATED] `Actor` is deprecated and will be replaced with `ActorContext`.'
215+
warn '[DEPRECATED] `Actor` is deprecated and will be replaced with `Actress`.'
216216
raise NotImplementedError.new("#{self.class} does not implement #act")
217217
end
218218

219219
# @!visibility private
220220
#
221221
# @deprecated +Actor+ is being replaced with a completely new framework prior to v1.0.0
222222
def on_run # :nodoc:
223-
warn '[DEPRECATED] `Actor` is deprecated and will be replaced with `ActorContext`.'
223+
warn '[DEPRECATED] `Actor` is deprecated and will be replaced with `Actress`.'
224224
queue.clear
225225
end
226226

0 commit comments

Comments
 (0)