import { Observable } from 'rxjs' ; import { AbortController } from 'abortcontroller-polyfill/dist/cjs-ponyfill' ; param aborted$ export function getRequestAbortedSignal ( aborted$ ) { const controller = new AbortController ( ) ; aborted$ . subscribe ( ( ) => controller . abort ( ) ) ; return controller . signal ; }