You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@pekko.apache.org by GitBox <gi...@apache.org> on 2022/11/21 02:05:08 UTC

[GitHub] [incubator-pekko] jxnu-liguobin commented on a diff in pull request #58: Rename akka package to org.apache.pekko

jxnu-liguobin commented on code in PR #58:
URL: https://github.com/apache/incubator-pekko/pull/58#discussion_r1027446010


##########
akka-actor-testkit-typed/src/main/scala/org/apache/pekko/actor/testkit/typed/scaladsl/TestInbox.scala:
##########
@@ -0,0 +1,67 @@
+/*
+ * Copyright (C) 2009-2022 Lightbend Inc. <https://www.lightbend.com>
+ */
+
+package org.apache.pekko.actor.testkit.typed.scaladsl
+
+import java.util.concurrent.ThreadLocalRandom
+
+import scala.collection.immutable
+
+import org.apache.pekko
+import pekko.actor.{ Address, RootActorPath }
+import pekko.actor.testkit.typed.internal.TestInboxImpl
+import pekko.actor.typed.ActorRef
+import pekko.annotation.{ ApiMayChange, DoNotInherit }
+
+@ApiMayChange
+object TestInbox {
+  def apply[T](name: String = "inbox"): TestInbox[T] = {
+    val uid = ThreadLocalRandom.current().nextInt()
+    new TestInboxImpl((address / name).withUid(uid))
+  }
+
+  private[pekko] val address = RootActorPath(Address("akka.actor.typed.inbox", "anonymous"))

Review Comment:
   Does this need to be changed?



-- 
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-unsubscribe@pekko.apache.org

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


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