How to use the @pollyjs/utils.MODES.STOPPED function in @pollyjs/utils

To help you get started, we’ve selected a few @pollyjs/utils examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Netflix / pollyjs / packages / @pollyjs / core / src / polly.js View on Github external
async stop() {
    if (this.mode !== MODES.STOPPED) {
      this.disconnect();
      this.logger.disconnect();
      await (this.persister && this.persister.persist());
      this.mode = MODES.STOPPED;

      await EVENT_EMITTER.emit('stop', this);
    }
  }
github Netflix / pollyjs / packages / @pollyjs / core / src / polly.js View on Github external
async stop() {
    if (this.mode !== MODES.STOPPED) {
      this.disconnect();
      this.logger.disconnect();
      await (this.persister && this.persister.persist());
      this.mode = MODES.STOPPED;

      await EVENT_EMITTER.emit('stop', this);
    }
  }