This skill provides patterns for testing Effect's concurrency primitives: fibers, latches, deferreds, PubSub, SubscriptionRef, and streams.
CRITICAL: Choose the correct coordination primitive based on what you need to synchronize.
| Simple fiber yield | Effect.yieldNow | | Forked PubSub subscriber ready | yieldNow after fork, yieldNow after each publish | | Wait for subscriber ready | Deferred.make() + Deferred.await | | Wait for stream element | Effect.makeLatch() + Stream.tap(() => latch.open) | | Time-dependent behavior | TestClock.adjust |
Primitive di concorrenza di Test Effect tra cui PubSub, Deferred, Latch, Fiber coordination, SubscriptionRef e Stream. Usa questa abilità quando testi effetti simultanei, sistemi guidati dagli eventi o coordinazione delle fibre. Fonte: front-depiction/claude-setup.