Package io.deephaven.web.client.api
Class DhNamespace
java.lang.Object
io.deephaven.web.client.api.DhNamespace
Functions in the
dh namespace itself. Not a class: it has no constructor and no instance members.-
Method Summary
Modifier and TypeMethodDescriptionstatic elemental2.promise.Promise<elemental2.core.JsArray<JsResolvedTable>> resolveAll(elemental2.core.ReadonlyArray<JsPendingTable<?>> pendings, @JsNullable @TsTypeRef(ResolveOptions.class) Object options) Resolves each of the pending tables, asJsPendingTable.resolve(Object)does, and gives the tables in the same order once all have arrived.
-
Method Details
-
resolveAll
public static elemental2.promise.Promise<elemental2.core.JsArray<JsResolvedTable>> resolveAll(elemental2.core.ReadonlyArray<JsPendingTable<?>> pendings, @JsOptional @TsTypeRef(ResolveOptions.class) @JsNullable @TsTypeRef(ResolveOptions.class) Object options) Resolves each of the pending tables, asJsPendingTable.resolve(Object)does, and gives the tables in the same order once all have arrived. If one fails, the result rejects along with it, and the others are canceled viaJsPendingTable.cancel(), so nothing is left open: work still running is stopped, a table already delivered is closed, and anything chained on them that has not produced its table yet fails too. Aborting the signal inoptionsalso cancels each pending table and closes any that did complete.Like any use of a pending table, call
resolveAllin the task that made the pending tables, and do not also await or resolve them elsewhere.const [joined, totals] = await dh.resolveAll([ left.naturalJoin(right, ["Key"]), left.sumBy(["Key"]), ]);- Parameters:
pendings- the pending tables to resolveoptions- optionally, a signal to abort with- Returns:
- a promise of the resolved tables, in the order given, which the caller must close
-