source: trip-planner-front/node_modules/rxjs/_esm5/internal/testing/SubscriptionLoggable.js@ e29cc2e

Last change on this file since e29cc2e was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 872 bytes
Line 
1/** PURE_IMPORTS_START _SubscriptionLog PURE_IMPORTS_END */
2import { SubscriptionLog } from './SubscriptionLog';
3var SubscriptionLoggable = /*@__PURE__*/ (function () {
4 function SubscriptionLoggable() {
5 this.subscriptions = [];
6 }
7 SubscriptionLoggable.prototype.logSubscribedFrame = function () {
8 this.subscriptions.push(new SubscriptionLog(this.scheduler.now()));
9 return this.subscriptions.length - 1;
10 };
11 SubscriptionLoggable.prototype.logUnsubscribedFrame = function (index) {
12 var subscriptionLogs = this.subscriptions;
13 var oldSubscriptionLog = subscriptionLogs[index];
14 subscriptionLogs[index] = new SubscriptionLog(oldSubscriptionLog.subscribedFrame, this.scheduler.now());
15 };
16 return SubscriptionLoggable;
17}());
18export { SubscriptionLoggable };
19//# sourceMappingURL=SubscriptionLoggable.js.map
Note: See TracBrowser for help on using the repository browser.