php-http / curl-client

cURL client
http://httplug.io
MIT License
443 stars 28 forks source link

Automatically wait for promises on destruct. #33

Open Nyholm opened 7 years ago

Nyholm commented 7 years ago

From https://github.com/php-http/httplug-quickstart/pull/1#issuecomment-312874509

Currently Guzzle automatically calls the queue in the shutdown handler or can be called manually. The queue is responsible for waiting on Promises. In our cURL client the only solution right now is to manually do that for every promise.

sagikazarmark commented 7 years ago

Not sure if this is precise. On destruct of what? The client? That would require the keep the queue inside the client which I am not sure we want.