SPARK-2636: only keep foreachAsync in the java API