curl-client icon indicating copy to clipboard operation
curl-client copied to clipboard

Automatically wait for promises on destruct.

Open Nyholm opened this issue 7 years ago • 1 comments

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.

Nyholm avatar Jul 04 '17 13:07 Nyholm

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.

sagikazarmark avatar Jul 04 '17 18:07 sagikazarmark