He-Pin commented on code in PR #1027: URL: https://github.com/apache/incubator-pekko/pull/1027#discussion_r1462935547
########## actor/src/main/scala/org/apache/pekko/dispatch/ThreadPoolBuilder.scala: ########## @@ -173,19 +173,23 @@ object MonitorableThreadFactory { val doNothing: Thread.UncaughtExceptionHandler = new Thread.UncaughtExceptionHandler() { def uncaughtException(thread: Thread, cause: Throwable) = () } + private[pekko] class PekkoManagedBlocker[T](thunk: => T) + extends AtomicReference[Option[T]](None) with ForkJoinPool.ManagedBlocker { + final override def block(): Boolean = { + set(Some(thunk)) + true + } + + final override def isReleasable: Boolean = get().isDefined Review Comment: I will update, lost the origin comment -- 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