guzzle / promises

Promises/A+ library for PHP with synchronous support
MIT License
7.61k stars 116 forks source link

[2.0] Started work on v2 #108

Closed GrahamCampbell closed 4 years ago

GrahamCampbell commented 4 years ago

PHP 7.2+, with the same changes as I proposed for Guzzle 7, avoiding calling the helper functions within the core code, to mitigate global package installation issues.

mtdowling commented 4 years ago

Good ideas!

A random idea I had that I never had time to pursue was whether or not this library could move towards a thread-safe solution. As of right now, all promises mutate a global queue and can't be easily used with libraries like pthreads (anecdotally basing this on issues I've seen over the last few years).

GrahamCampbell commented 4 years ago

I am going to pull out the Utils class changes so we can add this in 1.4.0.

GrahamCampbell commented 4 years ago

I am going to implement the Utils class for 1.4.0, and deprecate the global functions. That way Guzzle 7.1.0 can use it.

GrahamCampbell commented 4 years ago

Regarding other changes, like dropping old PHP and adding typing, that can be addressed later down the line, when we are actually ready to start work on 2.0. I want to prioritise fixing the global functions problem on the 1.x series, so we can get that out sooner than 2.0.0.