We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0f1b635 + f171c51 commit f2c6005Copy full SHA for f2c6005
src/library/scala/concurrent/BatchingExecutor.scala
@@ -103,7 +103,7 @@ private[concurrent] trait BatchingExecutor extends Executor {
103
override def execute(runnable: Runnable): Unit = {
104
if (batchable(runnable)) { // If we can batch the runnable
105
_tasksLocal.get match {
106
- case null => unbatchedExecute(new Batch(List(runnable))) // If we aren't in batching mode yet, enqueue batch
+ case null => unbatchedExecute(new Batch(runnable :: Nil)) // If we aren't in batching mode yet, enqueue batch
107
case some => _tasksLocal.set(runnable :: some) // If we are already in batching mode, add to batch
108
}
109
} else unbatchedExecute(runnable) // If not batchable, just delegate to underlying
0 commit comments