python-cdp icon indicating copy to clipboard operation
python-cdp copied to clipboard

Expose closeable event listener in twisted

Open RazorBest opened this issue 4 months ago • 1 comments

Implement the function create_listener, for pycdp.twisted, so the user can cancel it.

Remove _CLOSE_SENTINEL, because you can directly use Deferred.close to achieve the same effect.

Added tests for CDPEventListener.

~There's still an isssue with the internal state. I don't know what should happen when aiter(listener) is called multiple times.~

RazorBest avatar Aug 12 '25 00:08 RazorBest

I think we should squash all commits into a single commit for better review and merging. Rebase your branch onto main and squash all the commits.

Thanks for your work.

HMaker avatar Oct 03 '25 22:10 HMaker