id_effect 0.2.0

Effect<A, E, R> (sync + async), context/layers, pipe — interpreter-style, no bundled executor
Documentation
1
2
3
4
5
# Resources & Scopes — Deterministic Cleanup

RAII works beautifully in synchronous Rust: resources are released when they fall out of scope, `Drop` runs deterministically. In async code, the picture gets complicated.

This chapter shows why RAII breaks down in async contexts, introduces `Scope` and finalizers as the solution, covers the `acquire_release` pattern for RAII-style resource management, and concludes with `Pool` for reusing expensive connections.