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

com.sksamuel.elastic4s.monix.TaskExecutor.scala Maven / Gradle / Ivy

The newest version!
package com.sksamuel.elastic4s.monix

import com.sksamuel.elastic4s.{ElasticRequest, Executor, HttpClient, HttpResponse}
import monix.eval.Task

class TaskExecutor extends Executor[Task] {
  override def exec(client: HttpClient, request: ElasticRequest): Task[HttpResponse] =
    Task.async(k => client.send(request, k))
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy