Download the PHP package jced-artem/leak-safe-generator without Composer
On this page you can find all versions of the php package jced-artem/leak-safe-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download jced-artem/leak-safe-generator
More information about jced-artem/leak-safe-generator
Files in jced-artem/leak-safe-generator
Download jced-artem/leak-safe-generator
More information about jced-artem/leak-safe-generator
Files in jced-artem/leak-safe-generator
Vendor jced-artem
Package leak-safe-generator
Short Description Generator wrapper to prevent memory leaks
License MIT
Homepage https://github.com/jced-artem
Package leak-safe-generator
Short Description Generator wrapper to prevent memory leaks
License MIT
Homepage https://github.com/jced-artem
Please rate this library. Is it a good library?
Informations about the package leak-safe-generator
Leak safe PHP generator wrapper
Install
composer require jced-artem/leak-safe-generator
If you want to prevent memory leaks when you use generators with handlers and you bored to use try..finally
constructions - this class could help.
Example
Problem
If you break loop before get all yields you will have not closed handler $ch
and this can cause memory leaks.
Solution
New problem
This code isn't usable if you make several generators
New solution
or shorter version
And you don't need to create additional functions/methods and write try..finally
constructions for each generator.
All versions of leak-safe-generator with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.5.0
The package jced-artem/leak-safe-generator contains the following files
Loading the files please wait ....