Blocking Jev
JevApi as blocking calls, for scripts, main, and tests, reached through JevClient.blocking, or blocking for any other JevApi.
The blocking calls exist on the JVM only. On every other platform this class has no members: Kotlin/JS and Kotlin/Wasm can't block a thread at all, and Kotlin/Native code that needs to can wrap the suspend calls in runBlocking itself.
JevApi as blocking calls, for scripts, main, and tests. Every call declares InterruptedException, which runBlocking throws when the waiting thread is interrupted, so Java code can catch it.
Blocking calls are JVM-only; on Kotlin/Native, call the suspend API, wrapped in runBlocking if need be.
Blocking calls are JVM-only; on Kotlin/JS and Kotlin/Wasm, call the suspend API.
Functions
Link copied to clipboard
inline fun <T : Any> ask(query: JevQuery, state: T, vararg images: JevImage, model: String? = null): JevResult
Link copied to clipboard
fun evaluate(state: JsonElement, questions: QuestionSet, model: String?, options: JevCallOptions): JevResult
Link copied to clipboard
inline fun <T : Any> query(state: T, model: String? = null, noinline block: QueryBuilder.() -> Unit): JevResult