Open WyriHaximus opened 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.
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
Oh, i missread your op. I didn't see the "next" part...
No you didn't :). I've added it after your comment to clarify it :+1:
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.
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.)
The source post of Recoil and mkjpryor/async: http://nikic.github.io/2012/12/22/Cooperative-multitasking-using-coroutines-in-PHP.html
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.