RewindableGenerator
class RewindableGenerator implements Countable, IteratorAggregate (View source)
Properties
| protected callable | $generator | The generator callback. |
|
| protected callable|int | $count | The number of tagged services. |
Methods
void
__construct(callable $generator, callable|int $count)
Create a new generator instance.
getIterator()
Get an iterator from the generator.
int
count()
Get the total number of tagged services.
Details
void
__construct(callable $generator, callable|int $count)
Create a new generator instance.
Traversable
getIterator()
Get an iterator from the generator.
int
count()
Get the total number of tagged services.
Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.