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

izumi.functional.bio.__PlatformSpecific.scala Maven / Gradle / Ivy

package izumi.functional.bio

import izumi.fundamentals.platform.language.Quirks.Discarder

import java.util.concurrent.CompletionStage
import scala.annotation.unused
import zio.IO
import zio.stacktracer.TracingImplicits.disableAutoTrace

private[bio] object __PlatformSpecific {
  @inline def fromFutureJava[A](@unused javaFuture: => CompletionStage[A]): IO[Throwable, A] = {
    throw new RuntimeException("No CompletionStage on Scala.js!")
  }

  disableAutoTrace.discard()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy