UNPKG

@lifaon/rx-js-light

Version:

Blazing fast Observables

9 lines (8 loc) 303 B
import {createCustomError} from "../custom-error/create-custom-error.mjs"; import {ABORT_ERROR_NAME} from "./abort-error-name.constant.mjs"; export function createAbortError(options) { return Object.assign(createCustomError(ABORT_ERROR_NAME, { message: 'Aborted', ...options }), options); }