dongjoon-hyun commented on a change in pull request #26077: 
[SPARK-29413][CORE][FOLLOWUP] A better parmap method signature
URL: https://github.com/apache/spark/pull/26077#discussion_r333274284
 
 

 ##########
 File path: core/src/main/scala/org/apache/spark/util/ThreadUtils.scala
 ##########
 @@ -274,12 +274,19 @@ private[spark] object ThreadUtils {
    * @return new collection in which each element was given from the input 
collection `in` by
    *         applying the lambda function `f`.
    */
-  def parmap[I, O](in: Seq[I], prefix: String, maxThreads: Int)(f: I => O): 
Seq[O] = {
+  def parmap[I, O, Col[X] <: TraversableOnce[X]]
 
 Review comment:
   Thank you for the investigation and the conclusion, @zsxwing and @srowen .

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to