WyriHaximus / ReactGuzzle

ReactPHP HttpClient Adapter for Guzzle
MIT License
34 stars 5 forks source link

100% interface compatibility #3

Open WyriHaximus opened 10 years ago

WyriHaximus commented 10 years ago

Look for a way to make this 100% compatible with Guzzle. Thus making it possible to use it with the next major AWS SDK version.

GrahamCampbell commented 10 years ago

This won't be usable with the current aws sdk since this is using guzzle 4, and the aws sdk is using guzzle 3 currently.

WyriHaximus commented 10 years ago

There is an issue on the ASK SDK to build the next major version on Guzzle 4: https://github.com/aws/aws-sdk-php/issues/311

GrahamCampbell commented 10 years ago

Oh, i missread your op. I didn't see the "next" part...

WyriHaximus commented 10 years ago

No you didn't :). I've added it after your comment to clarify it :+1:

WyriHaximus commented 10 years ago

Found this today, putting it up here for reference: https://github.com/rdlowrey/After/blob/master/lib/Future.php#L92-L94 It could be the key to do this.

WyriHaximus commented 10 years ago

Interesting read: https://bitbucket.org/mkjpryor/async/wiki/Home this could be a better way to do it then my comment from Aug 22 as there are some issues with that. (See https://gist.github.com/mtdowling/47da5eab54337cdc7ecc for more information on that.)

WyriHaximus commented 10 years ago

The source post of Recoil and mkjpryor/async: http://nikic.github.io/2012/12/22/Cooperative-multitasking-using-coroutines-in-PHP.html