Skip to content

Enhancements to QThreadExecutor - #152

Open
kristjanvalur wants to merge 5 commits into
CabbageDevelopment:masterfrom
kristjanvalur:pool2
Open

Enhancements to QThreadExecutor#152
kristjanvalur wants to merge 5 commits into
CabbageDevelopment:masterfrom
kristjanvalur:pool2

Conversation

@kristjanvalur

@kristjanvalur kristjanvalur commented Aug 16, 2025

Copy link
Copy Markdown
Contributor

This PR enhances the conformity of QThreadExecutor with the Executor protocol.

  • shutdown() is now thread-safe and there is no race between shutdown() and submit().
  • shutdown() can be called more than once. This is how the standard Executors work, and is congruent with close() and similar methods.
  • map() is supported.
  • cancel_futures argument to shutdown() is supported.
@kristjanvalur
kristjanvalur force-pushed the pool2 branch 2 times, most recently from d79c72e to 9d176df Compare August 16, 2025 17:20
@github-actions

github-actions Bot commented Aug 16, 2025

Copy link
Copy Markdown

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  src/qasync
  __init__.py
  _windows.py
  tests
  test_qthreadexec.py
Project Total  

This report was generated by python-coverage-comment-action

@kristjanvalur
kristjanvalur force-pushed the pool2 branch 2 times, most recently from 601687c to c6807c5 Compare August 19, 2025 14:20
@kristjanvalur
kristjanvalur marked this pull request as ready for review October 10, 2025 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant