How to use the @tanker/errors.OperationCanceled function in @tanker/errors

To help you get started, we’ve selected a few @tanker/errors 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 TankerHQ / sdk-js / packages / core / src / Network / Client.js View on Github external
this._abortOpen = () => {
        const error = new OperationCanceled('client opening aborted');
        cleanup();
        this.socket.abortRequests(error);
        reject(error);
      };