Skip to content

time: clarify Ticker documentation #26220

@pjebs

Description

@pjebs

The documentation for Stop() states:

Stop turns off a ticker. After Stop, no more ticks will be sent. Stop does not close the channel, to prevent a read from the channel succeeding incorrectly.

Can the documentation clarify what "to prevent a read from the channel succeeding incorrectly."means.

Should we close the channel ourself if we want to help the garbage collector?

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocumentationIssues describing a change to documentation.FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.help wanted

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions