UNPKG

fast-iterable

Version:

Provides LINQ-like fluent api operations for iterables and async iterables (ES2018+).

13 lines (12 loc) 280 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.catchAsync = void 0; async function* catchAsync(errorCallback) { try { yield* this; } catch (err) { await errorCallback(err); } } exports.catchAsync = catchAsync;