promise icon indicating copy to clipboard operation
promise copied to clipboard

cancel function is missing on promises.

Open tolgaulas opened this issue 4 years ago • 1 comments

Description the cancel function is missing, causing programs to hang even an exception is thrown. Despite Promises/A+ does not mention .cancel, many promise capable libraries (i.e GUZZLE, REACTPHP) provides such feature.

Example $promise.cancel();

tolgaulas avatar Oct 20 '21 01:10 tolgaulas

to make things optional, we could add a CancellablePromise interface and implement that in the guzzle adapter promise to expose the guzzle promise cancel method.

dbu avatar Jan 04 '24 18:01 dbu