import { pass } from '@blackglory/prelude' export async function getErrorAsyncIterable( iterable: AsyncIterable ): Promise { try { for await (const _ of iterable) { pass() } } catch (err) { return err as E } }