Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

timeout.js 552B

123456789101112
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. var async_1 = require("../scheduler/async");
  4. var TimeoutError_1 = require("../util/TimeoutError");
  5. var timeoutWith_1 = require("./timeoutWith");
  6. var throwError_1 = require("../observable/throwError");
  7. function timeout(due, scheduler) {
  8. if (scheduler === void 0) { scheduler = async_1.async; }
  9. return timeoutWith_1.timeoutWith(due, throwError_1.throwError(new TimeoutError_1.TimeoutError()), scheduler);
  10. }
  11. exports.timeout = timeout;
  12. //# sourceMappingURL=timeout.js.map