[scheduler] Address Copilot feedback: %p type, NameType doc, test docstring

- Strip const for the %p varargs call (the format spec takes void*, not
  const void*; same representation everywhere but pedantically correct).
- Mention SELF_POINTER in the NameType discriminator comment.
- Update test docstring to match the actual const void * signatures.
This commit is contained in:
J. Nick Koston
2026-04-29 11:06:04 -05:00
parent 17173ba3a3
commit e3fdea8ce1
3 changed files with 10 additions and 7 deletions
@@ -1,9 +1,10 @@
"""Test the self-keyed scheduler API.
Verifies that `Scheduler::set_timeout(void *, ...)` / `set_interval(void *, ...)` and the
matching `cancel_*(void *)` overloads behave correctly: callbacks fire, distinct keys
don't collide, self-keyed and component-keyed namespaces are independent, and
re-registering the same key replaces the existing timer.
Verifies that `Scheduler::set_timeout(const void *, ...)` /
`set_interval(const void *, ...)` and the matching `cancel_*(const void *)`
overloads behave correctly: callbacks fire, distinct keys don't collide,
self-keyed and component-keyed namespaces are independent, and re-registering
the same key replaces the existing timer.
"""
import asyncio