reactphp / promise

Promises/A implementation for PHP.
https://reactphp.org/promise/
MIT License
2.38k stars 146 forks source link

Add example folder #232

Closed ishanvyas22 closed 2 years ago

ishanvyas22 commented 2 years ago

It would be good to have examples folder in the repo same as there's for others like reactphp/filesystem.

Examples can be how to read file using promises or any other real world use case.

WyriHaximus commented 2 years ago

While I agree with having some examples there so users can play around with it. Examples like reading a file are better suited in the package that provides that functionality. Promises are a rather low-level package so most examples will and should be rather abstract. Where as the filesystem package or HTTP package should have examples on how to make HTTP requests or read from a file.

clue commented 2 years ago

I believe this has been answered, so I'm closing this for now. Please come back with more details if this problem persists and we can always reopen this :+1: