Skip to main content

Function: yieldToBrowser()

yieldToBrowser(): Promise<void>

Yields a training loop back to the browser between iterations so the tab stays responsive during a long-running compute loop.

Returns​

Promise<void>