function then()

in public/dexie.js [811:830]


      function then(onFulfilled, onRejected) {
        var _this = this;
        var possibleAwait =
          !psd.global && (psd !== PSD || microTaskId !== totalEchoes);
        if (possibleAwait) decrementExpectedAwaits();
        var rv = new Promise(function (resolve, reject) {
          propagateToListener(
            _this,
            new Listener(
              nativeAwaitCompatibleWrap(onFulfilled, psd, possibleAwait),
              nativeAwaitCompatibleWrap(onRejected, psd, possibleAwait),
              resolve,
              reject,
              psd
            )
          );
        });
        debug && linkToPreviousPromise(rv, this);
        return rv;
      }