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

com.sksamuel.elastic4s.monix.instances.TaskInstances.scala Maven / Gradle / Ivy

There is a newer version: 8.11.5
Show newest version
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