All Downloads are FREE. Search and download functionalities are using the official Maven repository.

frameless.cats.SparkTask.scala Maven / Gradle / Ivy

The newest version!
package frameless
package cats

import _root_.cats.Id
import _root_.cats.data.Kleisli
import org.apache.spark.SparkContext

object SparkTask {
  def apply[A](f: SparkContext => A): SparkTask[A] =
    Kleisli[Id, SparkContext, A](f)

  def pure[A](a: => A): SparkTask[A] =
    Kleisli[Id, SparkContext, A](_ => a)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy