Github user rxin commented on a diff in the pull request:
https://github.com/apache/spark/pull/2176#discussion_r16908460
--- Diff: core/src/main/scala/org/apache/spark/api/java/JavaRDDLike.scala
---
@@ -574,4 +574,15 @@ trait JavaRDDLike[T, This <: JavaRDDLike[T, This]]
extends Serializable {
def name(): String = rdd.name
+ /**
+ * The asynchronous version of the foreach action.
+ *
+ * @param f the function to apply to all the elements of the RDD
+ * @return a FutureAction for the action
+ */
+ def foreachAsync(f: VoidFunction[T]): FutureAction[Unit] = {
--- End diff --
Can we mark this as experimental in Java?
I don't know if we have a way to mark stuff as experimental, but maybe put
this in the javadoc:
```scala
* THIS IS AN EXPERIMENTAL API THAT MIGHT CHANGE IN THE FUTURE.
```
@pwendell thoughts?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]