Class DhNamespace

java.lang.Object
io.deephaven.web.client.api.DhNamespace

@JsType(name="dh", namespace="<global>") public class DhNamespace extends Object
Functions in the dh namespace itself. Not a class: it has no constructor and no instance members.
  • 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, as JsPendingTable.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 via JsPendingTable.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 in options also cancels each pending table and closes any that did complete.

      Like any use of a pending table, call resolveAll in 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 resolve
      options - optionally, a signal to abort with
      Returns:
      a promise of the resolved tables, in the order given, which the caller must close