Skip to content

Pr/timer#315

Open
sgerbino wants to merge 2 commits into
cppalliance:develop-2from
sgerbino:pr/timer
Open

Pr/timer#315
sgerbino wants to merge 2 commits into
cppalliance:develop-2from
sgerbino:pr/timer

Conversation

@sgerbino

Copy link
Copy Markdown
Collaborator

No description provided.

@cppalliance-bot

cppalliance-bot commented Jul 10, 2026

Copy link
Copy Markdown

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

sgerbino added 2 commits July 11, 2026 01:19
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

2 participants