From bbcc8faa95b092cada91b3881cb8ed891ca9d5d5 Mon Sep 17 00:00:00 2001 From: Turtle Date: Wed, 22 Jul 2026 17:19:46 +0800 Subject: [PATCH] docs(cordis-tutorial): note PENDING fibers do not keep Node alive --- docs/cordis-tutorial/03-services.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/cordis-tutorial/03-services.md b/docs/cordis-tutorial/03-services.md index 4915b59d48..4bf32e81da 100644 --- a/docs/cordis-tutorial/03-services.md +++ b/docs/cordis-tutorial/03-services.md @@ -67,7 +67,7 @@ Compose and run: Hello, world! ``` -Swap the two lines in `cordis.yml` and rerun: same output. Try removing `./greeter.ts` entirely: the consumer stays PENDING and prints nothing — no crash, no partial run. [Chapter 6](06-composition-and-hmr.md) shows how to diagnose that state. +Swap the two lines in `cordis.yml` and rerun: same output. Try removing `./greeter.ts` entirely: the consumer stays PENDING and prints nothing — no crash, no partial run. A PENDING fiber does not keep Node's event loop alive either, so a composition with nothing else running exits 0 silently. [Chapter 6](06-composition-and-hmr.md) shows how to diagnose that state. ## Dependencies are live