import { AsyncIterableX } from './asynciterablex' ; import { throwIfAborted } from '../aborterror' ; class EmptyAsyncIterable extends AsyncIterableX < never > { async * [ Symbol . asyncIterator ] ( signal ? ) { throwIfAborted ( signal ) ; } } template TSource returns { AsyncIterableX < never > } export function empty ( ) { return new EmptyAsyncIterable ( ) ; }