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 |
Примитивы параллелизма Test Effect, включая PubSub, Deferred, Latch, координацию Fiber, SubscriptionRef и Stream. Используйте этот навык при тестировании параллельных эффектов, систем, управляемых событиями, или координации волокон. Источник: front-depiction/claude-setup.