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

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

There is a newer version: 8.11.5
Show 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 - 2024 Weber Informatics LLC | Privacy Policy