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

diode.util.RunAfter.scala Maven / Gradle / Ivy

There is a newer version: 1.1.0
Show newest version
package diode.util

import diode.ActionResult.Effect

import scala.annotation.implicitNotFound
import scala.concurrent.{ExecutionContext, Future}
import scala.concurrent.duration.FiniteDuration

@implicitNotFound("""Cannot find an implicit RunAfter. You might pass
an (implicit runner: RunAfter) parameter to your method
or import diode.Implicits.runAfter""")
trait RunAfter {
  def runAfter[A](delay: FiniteDuration)(f: => A): Future[A]

  def effectAfter[A <: AnyRef](delay: FiniteDuration)(f: Effect[A])(implicit ec: ExecutionContext): Effect[A]
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy