Skip to content

time.NewTicker should panic() on nonsensical input #1392

@msolo

Description

@msolo
time.NewTicker(-1) returns nil.

This is correct but unhelpful. It is most likely a programming error and a panic() could
give much more detail about why it failed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions