Pr/timer#315
Open
sgerbino wants to merge 2 commits into
Open
Conversation
|
An automated preview of the documentation is available at https://315.corosio.prtest3.cppalliance.org/index.html If more commits are pushed to the pull request, the docs will rebuild at the same URL. 2026-07-10 23:51:51 UTC |
…y and timeout Add delay(duration) and delay(time_point), lean awaitables over the existing reactor timer heap, and timeout(op, duration) and timeout(op, time_point), an awaitable adapter that races an inner operation against a deadline. A deadline win maps the result to error::timeout with a default payload; parent-stop cancellation surfaces unchanged as error::canceled; inner exceptions always propagate. Winner detection reads the interposed stop source and the parent token before this level requests stop, which also keeps nested timeouts correct without extra state. Remove the public timer class, cancel_at, cancel_after, native_timer, and the public io_timer wait surface. The timer class survives under detail as the engine behind delay and timeout; detail::timer_service and the scheduler hookups are unchanged. Tests, benchmarks, examples, and docs migrate to the stateless API; delay and timeout suites cover all backends including concurrency_hint == 1.
The capy branch resolution only consulted cppalliance/capy, so a branch pushed to a fork of corosio could never find its matching capy branch on the same owner's capy fork and silently fell back to capy's default branch, building against the wrong API. Try the repository owner's capy fork first for each branch candidate, then cppalliance/capy, and carry the resolved repository into the checkout step. Runs in cppalliance/corosio behave exactly as before.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.