function _await()

in workbox-v4.3.1/workbox-window.dev.umd.js [347:357]


  function _await(value, then, direct) {
    if (direct) {
      return then ? then(value) : value;
    }

    if (!value || !value.then) {
      value = Promise.resolve(value);
    }

    return then ? value.then(then) : value;
  }