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

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

package tanukkii.reactivezk

import org.apache.zookeeper.AsyncCallback.StringCallback

trait StringCallbackConversion {

  implicit def toStringCallback[Ctx](f: (Int, String, Ctx, String) => Unit): StringCallback = new StringCallback {
    def processResult(rc: Int, path: String, ctx: Any, name: String): Unit = f(rc, path, ctx.asInstanceOf[Ctx], name)
  }

}

object StringCallbackConversion extends StringCallbackConversion




© 2015 - 2024 Weber Informatics LLC | Privacy Policy