Skip to content

//workflow/com.squareup.workflow1.testing/WorkflowTestRuntime/awaitNextRendering

awaitNextRendering

[jvm]
Content
fun awaitNextRendering(timeoutMs: Long? = null, skipIntermediate: Boolean = true): RenderingT
More info

Blocks until the workflow emits a rendering, then returns it.

Parameters

jvm

timeoutMs

The maximum amount of time to wait for a rendering to be emitted. If null, WorkflowTestRuntime.DEFAULT_TIMEOUT_MS will be used instead.

skipIntermediate

If true, and the workflow has emitted multiple renderings, all but the most recent one will be dropped.