• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

steve-downey / callcc / 28718832322

04 Jul 2026 08:32PM UTC coverage: 76.404% (-1.6%) from 78.03%
28718832322

push

github

steve-downey
Add value_escape, call_cc_void, call_cc_from, and escape_fn alias

Extend the call_cc API with three new entry points and a value-channel
escape variant:

- value_escape_sender: completes set_value_t(V) instead of set_stopped_t(),
  making escape composable as a when_all child.
- escape.value(v): factory method producing value_escape_sender.
- call_cc_void(f): convenience for monostate early exit (no return value).
- call_cc_from(f): deduces ValueType from a typed escape_fn<V> parameter.
- escape_fn<V>: public alias for the escape factory type.
- stop_forwarder: replaces std::function<void()> in the stop callback,
  eliminating the last potential heap allocation.

Includes six new Catch2 tests and two example programs
(callcc_when_all.cpp, callcc_void_escape.cpp).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

67 of 93 new or added lines in 4 files covered. (72.04%)

272 of 356 relevant lines covered (76.4%)

2.87 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/examples/callcc_void_escape.cpp


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc