docs: function create(delay) {
      let timeoutId;
      let _reject;
      const promise = new Promise((resolve, reject) => {
        _reject = reject;
        timeoutId = setTimeout(() => {
          resolve();
          pendingPromises.delete(promise);
        }, delay);
      });
  
      pendingPromises.set(promise, {
        timeoutId,
        reject: _reject,
      });
      log('debug', 'Created a delay:', delay);
      return promise;
    }