com.sksamuel.elastic4s.monix.instances.TaskInstances.scala Maven / Gradle / Ivy
package com.sksamuel.elastic4s.monix.instances
import com.sksamuel.elastic4s.Functor
import com.sksamuel.elastic4s.monix.TaskExecutor
import monix.eval.Task
trait TaskInstances {
implicit val taskFunctor: Functor[Task] = new Functor[Task] {
override def map[A, B](fa: Task[A])(f: A => B): Task[B] = fa.map(f)
}
implicit val taskExecutor: TaskExecutor = new TaskExecutor
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy