withAwt
context(env: JniEnv, placement: NativePlacement)
inline fun <T> withAwt(version: AwtVersion, block: (Awt) -> T): T(source)
inline fun <T> withAwt(version: AwtVersion, block: (Awt) -> T): T(source)
Receive Awt from JniEnv and executes block with it.
Throw IllegalStateException if getAwt fails.