Skip to content

Conversation

@vinniefalco
Copy link
Member

No description provided.

- Add on() method to task<T> and task<void> that sets the dispatcher
  to post continuations through the specified executor
- Both lvalue (returns &) and rvalue (returns &&) overloads for fluent syntax
- Include executor.hpp in task.hpp for the implementation
- Add tests for on() functionality including fluent syntax
@cppalliance-bot
Copy link

cppalliance-bot commented Dec 30, 2025

An automated preview of the documentation is available at https://45.capy.prtest3.cppalliance.org/index.html

If more commits are pushed to the pull request, the docs will rebuild at the same URL.

2025-12-30 20:32:41 UTC

@codecov
Copy link

codecov bot commented Dec 30, 2025

Codecov Report

❌ Patch coverage is 85.00000% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 78.38%. Comparing base (1eb1f7d) to head (2533fdd).

Files with missing lines Patch % Lines
src/bcrypt/hash.cpp 66.66% 6 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop      #45      +/-   ##
===========================================
+ Coverage    77.95%   78.38%   +0.42%     
===========================================
  Files           36       36              
  Lines         2050     2063      +13     
===========================================
+ Hits          1598     1617      +19     
+ Misses         452      446       -6     
Files with missing lines Coverage Δ
include/boost/capy/bcrypt/result.hpp 100.00% <100.00%> (ø)
include/boost/capy/executor.hpp 83.18% <ø> (ø)
include/boost/capy/task.hpp 97.40% <100.00%> (+0.79%) ⬆️
src/bcrypt/hash.cpp 85.71% <66.66%> (+8.29%) ⬆️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1eb1f7d...2533fdd. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@cppalliance-bot
Copy link

cppalliance-bot commented Dec 30, 2025

GCOVR code coverage report https://45.capy.prtest3.cppalliance.org/gcovr/index.html
LCOV code coverage report https://45.capy.prtest3.cppalliance.org/genhtml/index.html
Coverage Diff https://45.capy.prtest3.cppalliance.org/gcovr/coverage_diff.txt

Build time: 2025-12-30 20:34:50 UTC

- Remove dispatcher_type (std::function) from task, use executor directly
- Add is_task_v trait to detect task types
- Propagate affinity from parent to child tasks in await_transform
- Update make_affine to use executor instead of template Dispatcher
- Skip dispatch when executor is empty (no affinity)
- Add ABC problem tests for affinity propagation
- Explicit .on() is preserved, only empty executors inherit
@vinniefalco vinniefalco merged commit 9a6d3ab into cppalliance:develop Dec 30, 2025
61 of 62 checks passed
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.

2 participants