reactphp-redis icon indicating copy to clipboard operation
reactphp-redis copied to clipboard

Support promise cancellation

Open clue opened this issue 1 year ago • 0 comments

We should register a Promise cancellation handler so that the following code actually cleans up the underlying promise and socket resources as applicable:

$promise = $redis->blpop('list', 100);

$promise->cancel();

See https://github.com/reactphp/dns/issues/28 and many others

clue avatar Aug 24 '24 17:08 clue