waitForCompletion
//fluxbase-kotlin/io.github.nimbleflux.fluxbase.rpc/FluxbaseRpc/waitForCompletion
waitForCompletion
Section titled “waitForCompletion”[jvm]
suspend fun waitForCompletion(executionId: String, options: WaitForCompletionOptions = WaitForCompletionOptions()): FluxbaseResponse<RpcExecution>
Poll for execution completion with exponential backoff. Port of waitForCompletion() in rpc.ts:212.
Returns when the execution reaches a terminal state (completed/failed/ cancelled/timeout) or when WaitForCompletionOptions.maxWaitMs is exceeded.