UNPKG

graphql

Version:

A Query Language and Runtime which can target any service.

1 lines 540 B
{"version":3,"file":"returnIteratorCatchingErrors.js","sourceRoot":"","sources":["../../src/execution/returnIteratorCatchingErrors.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,KAAK,UAAU,4BAA4B,CAChD,QAAgC;IAEhC,IAAI,CAAC;QACH,MAAM,QAAQ,CAAC,MAAM,EAAE,EAAE,CAAC;IAC5B,CAAC;IAAC,MAAM,CAAC;IAET,CAAC;AACH,CAAC","sourcesContent":["/** @internal */\nexport async function returnIteratorCatchingErrors(\n iterator: AsyncIterator<unknown>,\n): Promise<void> {\n try {\n await iterator.return?.();\n } catch {\n // ignore errors\n }\n}\n"]}