Provides a scoped Playwright.Browser to an Effect.
When to use
Use this as the concise alternative to accessing PlaywrightSpawner
and its browser effect directly.
Details
A fresh browser is launched when the returned effect starts and is closed
when that effect succeeds, fails, or is interrupted. The
PlaywrightSpawner layer must already be provided.
Provides a scoped
Playwright.Browserto an Effect.When to use
Use this as the concise alternative to accessing PlaywrightSpawner and its
browsereffect directly.Details
A fresh browser is launched when the returned effect starts and is closed when that effect succeeds, fails, or is interrupted. The PlaywrightSpawner layer must already be provided.
Example (Providing a browser for one program)