await_update
The await_update method instructs Deephaven to wait for updates to the Table specified in the query.
Syntax
Parameters
| Parameter | Type | Description |
|---|---|---|
| timeout optional | int | The maximum time to wait, in milliseconds. The default is |
Returns
True when the table is updated, or False if the timeout is reached.
Examples
In this example, the result of await_update is called and printed twice. The first time, 0 milliseconds have elapsed, and the method returns false since the table has not been updated. await_update 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.