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

scalaprops.TestExecutorImpl.scala Maven / Gradle / Ivy

package scalaprops

import scala.concurrent.duration.Duration
import sbt.testing.Logger

object TestExecutorImpl {
  private[this] val instance = new TestExecutor {
    override def execute[A](timeout: Duration)(f: => A): A = f
    override def shutdown(): Unit = {}
  }
  def withExecutor[A](logger: Logger)(f: TestExecutor => A): A =
    f(instance)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy