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

com.ossuminc.riddl.utils.Await.scala Maven / Gradle / Ivy

package com.ossuminc.riddl.utils

object Await {

  import scala.concurrent.Awaitable
  import scala.concurrent.duration.FiniteDuration

  def result[T](awaitable: Awaitable[T], secondsToWait: Int): T = {
    // FIXME: should be: scala.concurrent.Await.result[T](awaitable, waitFor)
    // FIXME: but this doesn't work in JS, maybe wait for WASM?
    throw NotImplementedError("Await.result(...) is not implemented for Javascript")
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy