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

Function AsyncFromSyncIteratorContinuation

docs/app/js/sanddance-app.js:54442–54451  ·  view source on GitHub ↗
(r)

Source from the content-addressed store, hash-verified

54440exports.default = _asyncIterator;
54441function AsyncFromSyncIterator(s1) {
54442 function AsyncFromSyncIteratorContinuation(r) {
54443 if (Object(r) !== r) return Promise.reject(new TypeError(r + " is not an object."));
54444 var done = r.done;
54445 return Promise.resolve(r.value).then(function(value) {
54446 return {
54447 value: value,
54448 done: done
54449 };
54450 });
54451 }
54452 return AsyncFromSyncIterator = function AsyncFromSyncIterator(s) {
54453 this.s = s, this.n = s.next;
54454 }, AsyncFromSyncIterator.prototype = {

Callers 1

AsyncFromSyncIteratorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected