Buckets:
| import { Scheduler } from '../Scheduler'; | |
| import { SubscriptionLog } from './SubscriptionLog'; | |
| export class SubscriptionLoggable { | |
| public subscriptions: SubscriptionLog[] = []; | |
| // @ts-ignore: Property has no initializer and is not definitely assigned | |
| scheduler: Scheduler; | |
| logSubscribedFrame(): number { | |
| this.subscriptions.push(new SubscriptionLog(this.scheduler.now())); | |
| return this.subscriptions.length - 1; | |
| } | |
| logUnsubscribedFrame(index: number) { | |
| const subscriptionLogs = this.subscriptions; | |
| const oldSubscriptionLog = subscriptionLogs[index]; | |
| subscriptionLogs[index] = new SubscriptionLog( | |
| oldSubscriptionLog.subscribedFrame, | |
| this.scheduler.now() | |
| ); | |
| } | |
| } | |
Xet Storage Details
- Size:
- 711 Bytes
- Xet hash:
- 53438daa59c513b493ad7696d99aea2826052b11481e0228125d393fa0c6c8fe
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.