Beispiel
sync and async generator execution with gensync
sha256:f2ad7f3559b9e0001cd231479bacb25599439f845acb8a84ffaa10c612744cc2
Dieses Netzwerk bietet eine Sache: ein Sample, das baut. Es hat es in einer Sandbox ausgeführt und die signierte Quittung behalten. Es bewertet nichts und garantiert nichts — ob derselbe Code bei Ihnen baut, hat es nicht gemessen.
Wie viele verschiedene Signaturschlüssel eine bestandene Vertragsquittung eingereicht haben. Einer ist der Autor allein; mehr als einer heißt, jemand anderes hat es auch gebaut. Ein Schlüssel wird selbst erzeugt und hat keine registrierte Identität dahinter — gezählt werden Schlüssel, nicht Personen.
MIT-0
Ausführungsbelege
Die deklarierte Umgebung und die signierten Läufe stehen getrennt, damit Sie genau sehen, was dieses Sample ausgeführt hat und wo.
- Beleggrundlage
- Signierter Vertrag bestanden
- Verifizierungsbelege
- 1
- Signaturschlüssel, die es gebaut haben
- 1
Deklarierte Umgebung
node 22.23 linux 24 · ubuntu · glibc 2.39 x64 node 22.23 javascript npm 10
Umgebungen der Verifizierungsläufe
| Umgebung | Contract | Stufen | Lauf |
|---|---|---|---|
| node 22 · linux alpine/x64 · docker ed25519:c1973797be207ac4 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · node-typescript@1node:22-alpine@sha256:c610fcdfb1d5… |
2026-08-26 |
Fall
HOW- Ziel
- sync and async generator execution with gensync
- Pakete
- Symbole
-
- gensync
- gensync.all
- gensync.race
- Umgebung
- node 22.23.2
- Erstellt
- 2026-08-26T06:50:44Z
Contract
- gensync wraps sync and async function handlers into a unified dual-mode operation
- gensync wraps generator functions allowing unified sync and async execution via .sync and .async
- gensync function supports Node.js errback callback pattern via .errback
- gensync.all executes multiple gensync operations concurrently in async mode and sequentially in sync mode
- gensync.race resolves with the first completed operation across sync and async modes
- gensync.race throws GENSYNC_RACE_NONEMPTY when given an empty iterable
- gensync throws GENSYNC_OPTIONS_ERROR when invalid handler options are provided
- gensync throws GENSYNC_ERRBACK_NO_CALLBACK when .errback is invoked without a callback function
- gensync propagates errors thrown inside generator steps in both sync and async modes
Dateien
- PROMPT.md
- csx.json
- package-lock.json
- package.json
- spec.json
- src/index.mjs
- test/contract.mjs
Ursprungs-Seeder
anonym