# Structured Concurrency: The hidden power behind Effect | Antoine Coulon (Effect Days 2025)

> For agents: start with the [agent guide](https://ratstack.sh/llms.txt). Every page is Markdown by default; add `Accept: text/html` for HTML.

[Effect | TypeScript for the AI Era](https://www.youtube.com/@effect-ts) · Published 2025-05-20 · 10:56 · A tier · Effect

[Watch on YouTube](https://www.youtube.com/watch?v=do5KCcCgS18) · [All RatTube videos](/tube)

## Summary

Antoine Coulon explains problems with concurrent Promise code, including cancellation, [resource](/lore/scopes-own-resources) leaks, and cleanup. Passing cancellation signals still leaves each operation responsible for handling and forwarding them correctly.

He introduces [structured concurrency](/lore/concurrent-work-needs-an-owner) through Effect. Parent work owns child operations, interruption reaches those children, and each operation can clean up. Fibers provide handles for running operations while preserving their relationships and execution state.

## Section notes

- [2:06](https://www.youtube.com/watch?v=do5KCcCgS18\&t=126s): Promise examples expose cancellation and resource cleanup problems.
- [3:59](https://www.youtube.com/watch?v=do5KCcCgS18\&t=239s): Cancellation signals require receivers to handle cleanup and propagate cancellation.
- [5:51](https://www.youtube.com/watch?v=do5KCcCgS18\&t=351s): Effect.all demonstrates interruption reaching child operations.
- [7:44](https://www.youtube.com/watch?v=do5KCcCgS18\&t=464s): Parent fibers supervise child work and interrupt it when the parent ends.
- [9:42](https://www.youtube.com/watch?v=do5KCcCgS18\&t=582s): Fibers represent running operations and retain their relationships.

## Key concepts

- [structured concurrency](/lore/concurrent-work-needs-an-owner)
- [resource](/lore/scopes-own-resources)

## Our take

Antoine Coulon explains structured concurrency and how Effect's fibers and scopes keep the relationships between concurrent tasks, so interruption and cleanup work. Ten minutes on the concurrency model under every Effect program.

## Related videos

- [Effect TypeScript Library: Beginner / Intermediate Workshop (Effect Days 2024)](/tube/effect-typescript-library-beginner-intermediate-workshop)
- [Production-grade app architecture with Effect (Workshop Part 1 – Effect Days 2025 )](/tube/production-grade-app-architecture-with-effect)
- [Building Effect 4.0 | Michael Arnaldi (Effect Days 2025)](/tube/building-effect-4-0-michael-arnaldi)
- [Production-Grade TypeScript by Johannes Schickling (Effect Days 2024)](/tube/production-grade-typescript-by-johannes-schickling)

Summary based on the transcript. Written 2026-11-15.
