submitAndAwaitBlocking

fun submitAndAwaitBlocking(spec: FitSpec, validate: Boolean = true): FitResult(source)

Synchronously submit and await the terminal FitResult. Bridges the Deferred result into a non-coroutine caller via runBlocking.

Do not call from inside a coroutine running on this session's scope (which would deadlock waiting for itself) or from a UI thread (which would freeze the UI). Use submit and observe the handle asynchronously instead in those contexts.