param delay export function abortAfter ( delay ) { const ac = new AbortController ( ) ; const timeout = setTimeout ( ( ) => ac . abort ( ) , delay ) ; ac . signal . addEventListener ( 'abort' , ( ) => clearTimeout ( timeout ) ) ; return [ ac , ac . signal ] ; }