"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.createTimeoutPromise = createTimeoutPromise;
function createTimeoutPromise(ms, unsubscribe) {
  return new Promise((_, reject) => {
    setTimeout(() => {
      try {
        if (unsubscribe) {
          unsubscribe();
        }
      } catch (e) {}
      reject();
    }, ms);
  });
}
//# sourceMappingURL=createTimeoutPromise.xmpp.js.map