He-Pin commented on code in PR #2037:
URL: https://github.com/apache/pekko/pull/2037#discussion_r2287091109


##########
actor/src/main/scala/org/apache/pekko/actor/Scheduler.scala:
##########
@@ -340,37 +345,7 @@ trait Scheduler {
     scheduleAtFixedRate(initialDelay.asScala, interval.asScala, receiver, 
message)(executor, sender)
   }
 
-  /**
-   * Deprecated API: See [[Scheduler#scheduleWithFixedDelay]] or 
[[Scheduler#scheduleAtFixedRate]].
-   */
-  @deprecated(
-    "Use scheduleWithFixedDelay or scheduleAtFixedRate instead. This has the 
same semantics as " +
-    "scheduleAtFixedRate, but scheduleWithFixedDelay is often preferred.",
-    since = "Akka 2.6.0")
-  @nowarn("msg=deprecated")
-  final def schedule(initialDelay: FiniteDuration, interval: FiniteDuration, 
receiver: ActorRef, message: Any)(
-      implicit
-      executor: ExecutionContext,
-      sender: ActorRef = Actor.noSender): Cancellable =
-    schedule(
-      initialDelay,
-      interval,
-      new Runnable {
-        def run(): Unit = {
-          receiver ! message
-          if (receiver.isTerminated)
-            throw SchedulerException("timer active for terminated actor")

Review Comment:
   The code was ported from here.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@pekko.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@pekko.apache.org
For additional commands, e-mail: notifications-h...@pekko.apache.org

Reply via email to