jerrypeng commented on code in PR #38517:
URL: https://github.com/apache/spark/pull/38517#discussion_r1048790837
##########
core/src/main/scala/org/apache/spark/util/ThreadUtils.scala:
##########
@@ -167,6 +167,27 @@ private[spark] object ThreadUtils {
Executors.newFixedThreadPool(1,
threadFactory).asInstanceOf[ThreadPoolExecutor]
}
+ /**
+ * Wrapper over newSingleThreadExecutor that allows the specification
+ * of a RejectedExecutionHandler
+ */
+ def newDaemonSingleThreadExecutorWithRejectedExecutionHandler(
+ threadName: String,
Review Comment:
The other methods in this class only have 2 spaces?
--
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]