UNPKG

graphql-helix

Version:

A highly evolved GraphQL HTTP Server 🧬

12 lines (11 loc) • 394 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.stopAsyncIteration = void 0; const stopAsyncIteration = (asyncIterable) => { const method = asyncIterable[Symbol.asyncIterator]; const asyncIterator = method.call(asyncIterable); if (asyncIterator.return) { asyncIterator.return(); } }; exports.stopAsyncIteration = stopAsyncIteration;