Skip to content

Function: whenReady()

whenReady<T>(cell, options?): Promise<T>

Defined in: testing.ts:138

Wait for the cell's next ready and hand back its value. Rejects promptly — with the cell's error — if the run fails instead, so an assertion failure points at the compute, not at a timeout.

Type Parameters

T

T

Parameters

cell

Cell<T>

options?

WaitOptions = {}

Returns

Promise<T>