source: trip-planner-front/node_modules/rxjs/_esm2015/internal/testing/SubscriptionLoggable.js@ 1ad8e64

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

initial commit

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