He-Pin commented on code in PR #3268:
URL: https://github.com/apache/pekko/pull/3268#discussion_r3488453103
##########
actor-testkit-typed/src/main/scala/org/apache/pekko/actor/testkit/typed/internal/StubbedActorContext.scala:
##########
@@ -161,8 +161,12 @@ private[pekko] final class FunctionRef[-T](override val
path: ActorPath, send: (
override def scheduleOnce[U](delay: FiniteDuration, target: ActorRef[U],
message: U): classic.Cancellable =
new classic.Cancellable {
- override def cancel() = false
- override def isCancelled = true
+ private var _cancelled = false
Review Comment:
shuold use AtomicBoolean
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]