io.github.pidoveproject.showdown.client.sync.package.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scala-showdown-api_3 Show documentation
Show all versions of scala-showdown-api_3 Show documentation
A Scala wrapper of Pokemon Showdown's API
The newest version!
package io.github.pidoveproject.showdown.client.sync
import zio.*
extension [R, E <: Throwable, A](effect: ZIO[R, E, A])
def runThrowFailure(runtime: Runtime[R]): A = Unsafe.unsafe { implicit unsafe =>
runtime.unsafe.run(effect).getOrThrowFiberFailure()
}