INNER CODE UNIT · JavaScript

Promise

ar90n/serverless-s3-local · serverless-s3-local/index.js:160

    return new Promise((resolve) => {
      if (!this.s3eventSubscription) {
        resolve();
      }

      this.s3eventSubscription.unsubscribe();

      this.subscribe();
      this.serverless.cli.log("constructor");
      resolve();
    });
  }

  subscribe() {
    this.eventHandlers = this.getEventHandlers();

    const s3Event = fromEvent(this.client, "event");

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…