frontend/.pnpm-store/v3/files/92/8ff1aceee16de4e14c54ee2ffa4c3a47283bc144d304b8f4c28121840504e1be493246a5e2e3472a88ee57a1c9b1f86e3372ebb5a572990705e3f61be5bacd

18 lines
797 B
Plaintext

import { SubscriptionLog } from './SubscriptionLog';
var SubscriptionLoggable = (function () {
function SubscriptionLoggable() {
this.subscriptions = [];
}
SubscriptionLoggable.prototype.logSubscribedFrame = function () {
this.subscriptions.push(new SubscriptionLog(this.scheduler.now()));
return this.subscriptions.length - 1;
};
SubscriptionLoggable.prototype.logUnsubscribedFrame = function (index) {
var subscriptionLogs = this.subscriptions;
var oldSubscriptionLog = subscriptionLogs[index];
subscriptionLogs[index] = new SubscriptionLog(oldSubscriptionLog.subscribedFrame, this.scheduler.now());
};
return SubscriptionLoggable;
}());
export { SubscriptionLoggable };
//# sourceMappingURL=SubscriptionLoggable.js.map