Skip to content

Define and implement periodic_timer behavior for zero periods #10

Description

@vshalygin

This issue was identified during a Codex code review.

Starting periodic_timer with total_periods == 0 currently schedules the timer and invokes the callback once because the period count is checked only after the first invocation.

Define zero periods as either a valid no-op or an invalid argument. Implement the selected behavior consistently and add a regression test.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions