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

tanukkii.reactivezk.VoidCallbackConversion.scala Maven / Gradle / Ivy

The newest version!
package tanukkii.reactivezk

import org.apache.zookeeper.AsyncCallback.VoidCallback

trait VoidCallbackConversion {
  implicit def toVoidCallback[Ctx](f: (Int, String, Ctx) => Unit): VoidCallback = new VoidCallback {
    def processResult(rc: Int, path: String, ctx: Any): Unit = f(rc, path, ctx.asInstanceOf[Ctx])
  }
}

object VoidCallbackConversion extends VoidCallbackConversion




© 2015 - 2024 Weber Informatics LLC | Privacy Policy