MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / fxAsyncFromSyncIteratorDone

Function fxAsyncFromSyncIteratorDone

xs/sources/xsGenerator.c:1991–2002  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1989}
1990
1991void fxAsyncFromSyncIteratorDone(txMachine* the)
1992{
1993 txSlot* slot = mxFunctionInstanceHome(mxFunction->value.reference);
1994 txSlot* instance = slot->value.home.object;
1995 txSlot* iterator = instance->next;
1996 txSlot* nextFunction = iterator->next;
1997 txSlot* doneFunction = nextFunction->next;
1998 txSlot* doneFlag = doneFunction->next;
1999 mxPushSlot(mxArgv(0));
2000 fxNewGeneratorResult(the, doneFlag->value.boolean);
2001 mxPullSlot(mxResult);
2002}
2003
2004void fxAsyncFromSyncIteratorFailed(txMachine* the)
2005{

Callers

nothing calls this directly

Calls 1

fxNewGeneratorResultFunction · 0.85

Tested by

no test coverage detected