awaitUpdate

The awaitUpdate method instructs Deephaven to wait for updates to the table specified in the query.

Syntax

Parameters

ParameterTypeDescription
timeoutlong

The maximum time to wait, in milliseconds.

Returns

A boolean value - false if the timeout elapses without notification, true otherwise.

Examples

In this example, the result of awaitUpdate is called and printed twice. The first time, 1 milliseconds have elapsed, and the method returns false since the table has not been updated. awaitUpdate is called again immediately afterward with a wait time of 1000 milliseconds. By that time, the source table has been updated, so the method returns true.