MCPcopy Create free account
hub / github.com/microsoft/SandDance / _asyncIterator

Function _asyncIterator

docs/app/js/sanddance-app.js:54431–54439  ·  view source on GitHub ↗
(iterable)

Source from the content-addressed store, hash-verified

54429var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");
54430parcelHelpers.defineInteropFlag(exports);
54431function _asyncIterator(iterable) {
54432 var method, async, sync, retry = 2;
54433 for("undefined" != typeof Symbol && (async = Symbol.asyncIterator, sync = Symbol.iterator); retry--;){
54434 if (async && null != (method = iterable[async])) return method.call(iterable);
54435 if (sync && null != (method = iterable[sync])) return new AsyncFromSyncIterator(method.call(iterable));
54436 async = "@@asyncIterator", sync = "@@iterator";
54437 }
54438 throw new TypeError("Object is not async iterable");
54439}
54440exports.default = _asyncIterator;
54441function AsyncFromSyncIterator(s1) {
54442 function AsyncFromSyncIteratorContinuation(r) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected