Search in sources :

Example 6 with JsRunnable

use of io.deephaven.web.shared.fu.JsRunnable in project deephaven-core by deephaven.

the class JsTreeTable method enqueue.

private void enqueue(TreeTableRequest.TreeRequestOperation operation, JsRunnable r) {
    if (queuedOperations != null) {
        JsRunnable old = queuedOperations;
        queuedOperations = () -> {
            nextRequestOps[nextRequestOps.length] = operation;
            old.run();
            r.run();
        };
    } else {
        queuedOperations = () -> {
            nextRequestOps[nextRequestOps.length] = operation;
            r.run();
        };
    }
}
Also used : JsRunnable(io.deephaven.web.shared.fu.JsRunnable)

Aggregations

JsRunnable (io.deephaven.web.shared.fu.JsRunnable)6 Promise (elemental2.promise.Promise)3 Ticket (io.deephaven.javascript.proto.dhinternal.io.deephaven.proto.ticket_pb.Ticket)3 JsIgnore (jsinterop.annotations.JsIgnore)3 JsMethod (jsinterop.annotations.JsMethod)3 JsPropertyMap (jsinterop.base.JsPropertyMap)3 JsArray (elemental2.core.JsArray)2 JsSet (elemental2.core.JsSet)2 CustomEventInit (elemental2.dom.CustomEventInit)2 ResponseStreamWrapper (io.deephaven.web.client.api.barrage.stream.ResponseStreamWrapper)2 CancellablePromise (io.deephaven.web.client.fu.CancellablePromise)2 JsLog (io.deephaven.web.client.fu.JsLog)2 LazyPromise (io.deephaven.web.client.fu.LazyPromise)2 LogItem (io.deephaven.web.shared.data.LogItem)2 JsConsumer (io.deephaven.web.shared.fu.JsConsumer)2 ArrayList (java.util.ArrayList)2 List (java.util.List)2 Supplier (java.util.function.Supplier)2 JsProperty (jsinterop.annotations.JsProperty)2 Timer (com.google.gwt.user.client.Timer)1