Demonstrates how to use Effection inside a library while exposing a traditional Promise-based API to clients.
createScope()- Integration point for non-Effection lifecycle management; returns[scope, destroy]resource()- Manages lifecycle with setup beforeprovide(), cleanup infinallywithResolvers()- Avoids race conditions between initialization and usagesuspend()- Keeps the scope alive; resources persist untildestroy()is called