Derive parallel sync + async APIs from one shared generator body: write the algorithm once as a generator that yields effect pairs, and let two tiny drivers execute the side each public function stands for.
nodejs sync typescript generator async effects zero-dependency api-design generators esm coroutine sync-async dual-api
-
Updated
Aug 12, 2026 - TypeScript