Skip to content

Conversation

kristjanvalur
Copy link
Contributor

@kristjanvalur kristjanvalur commented Aug 16, 2025

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
Copy link

github-actions bot commented Aug 16, 2025

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant