Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Yield Breakable Caller

Yield Breakable Caller Laravel Package

tourze/yield-breakable-caller

A small PHP utility that lets callers break out of yield-based iteration cleanly, giving generators controllable break semantics without messy manual loop handling.

View on GitHub
Deep Wiki
Context7

tourze/yield-breakable-caller provides a lightweight helper for invoking generator-based coroutines from ordinary PHP code while keeping control over when iteration stops. It wraps a callable that yields values and lets the caller break out of the generator at any point, propagating the result or exception back cleanly instead of forcing every consumer to hand-roll foreach loops and manual generator teardown.

  • Run any yielding callable through a single, predictable entry point
  • Break iteration early and still receive a well-defined return value
  • Consistent exception propagation from inside the generator to the caller
  • Minimal dependencies, PSR-friendly and easy to drop into existing Tourze projects
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
socialdept/atp-orm
cboxdk/laravel-assistant-client
socialdept/atp-resolver
socialdept/tenant-domains
tautvydasr/blade-class-names
socialdept/color-scales
maherelgamil/controller
coleus/widgets
coleus/table
coleus/users
coleus/music
coleus/health
coleus/calendar
coleus/notes
coleus/support
coleus/settings
coleus/apps
seampact/laravel
emmyconceptng/laravel-ng-postcode
jjsquady/round-robin