UNPKG

669 BSource Map (JSON)View Raw
1{"version":3,"sources":["asynciterable/empty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,kBAA4B,SAAQ,cAAuB;IAC/D,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC;QAC3B,oCAAoC;IACtC,CAAC;CACF;AAED,MAAM,UAAU,KAAK;IACnB,OAAO,IAAI,kBAAkB,EAAW,CAAC;AAC3C,CAAC","file":"empty.js","sourcesContent":["import { AsyncIterableX } from './asynciterablex';\n\nclass EmptyAsyncIterable<TSource> extends AsyncIterableX<TSource> {\n async *[Symbol.asyncIterator](): AsyncIterator<TSource> {\n // tslint:disable-next-line:no-empty\n }\n}\n\nexport function empty<TSource>(): AsyncIterableX<TSource> {\n return new EmptyAsyncIterable<TSource>();\n}\n"]}
\No newline at end of file