Sha256: 02ed66f352089b80d2676f181afef179aa3d79c3932a951eea91c97002dd6401

Contents?: true

Size: 635 Bytes

Versions: 53

Compression:

Stored size: 635 Bytes

Contents

import { Scheduler } from '../Scheduler';
import { SubscriptionLog } from './SubscriptionLog';

export class SubscriptionLoggable {
  public subscriptions: SubscriptionLog[] = [];
  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()
    );
  }
}

Version data entries

53 entries across 51 versions & 5 rubygems

Version Path
reed_sdk-1.0.1 node_modules/concurrently/node_modules/rxjs/src/internal/testing/SubscriptionLoggable.ts
reed_sdk-1.0.0 node_modules/concurrently/node_modules/rxjs/src/internal/testing/SubscriptionLoggable.ts
ilog-0.4.1 node_modules/rxjs/src/testing/SubscriptionLoggable.ts
ilog-0.4.0 node_modules/rxjs/src/testing/SubscriptionLoggable.ts
ilog-0.3.3 node_modules/rxjs/src/testing/SubscriptionLoggable.ts
govuk_publishing_components-18.0.0 node_modules/rxjs/src/testing/SubscriptionLoggable.ts
govuk_publishing_components-17.21.0 node_modules/rxjs/src/testing/SubscriptionLoggable.ts
govuk_publishing_components-17.20.0 node_modules/rxjs/src/testing/SubscriptionLoggable.ts
govuk_publishing_components-17.19.1 node_modules/rxjs/src/testing/SubscriptionLoggable.ts
govuk_publishing_components-17.19.0 node_modules/rxjs/src/testing/SubscriptionLoggable.ts
govuk_publishing_components-17.18.0 node_modules/rxjs/src/testing/SubscriptionLoggable.ts
govuk_publishing_components-17.17.0 node_modules/rxjs/src/testing/SubscriptionLoggable.ts
govuk_publishing_components-17.16.0 node_modules/rxjs/src/testing/SubscriptionLoggable.ts
govuk_publishing_components-17.15.0 node_modules/rxjs/src/testing/SubscriptionLoggable.ts
govuk_publishing_components-17.14.0 node_modules/rxjs/src/testing/SubscriptionLoggable.ts
govuk_publishing_components-17.13.0 node_modules/rxjs/src/testing/SubscriptionLoggable.ts
govuk_publishing_components-17.12.2 node_modules/rxjs/src/testing/SubscriptionLoggable.ts
govuk_publishing_components-17.12.1 node_modules/rxjs/src/testing/SubscriptionLoggable.ts
govuk_publishing_components-17.12.0 node_modules/rxjs/src/testing/SubscriptionLoggable.ts
govuk_publishing_components-17.11.0 node_modules/rxjs/src/testing/SubscriptionLoggable.ts