Skip to content

time: NewTicker is missing documentation on initial tick #42245

@JensRantil

Description

@JensRantil

What version of Go are you using (go version)?

1.15

What did you do?

I was about to use https://golang.org/pkg/time/#Tick and wanted to know if I would get an initial tick or the first tick will be sent immediately or after d time.Duration. https://golang.org/pkg/time/#Tick refers to https://golang.org/pkg/time/#NewTicker so I opened up the documentation for that. I noticed that https://golang.org/pkg/time/#NewTicker doesn't document whether the initial tick is sent immediately or after d time.Duration.

What did you expect to see?

That https://golang.org/pkg/time/#NewTicker documents this behaviour.

What did you see instead?

Behaviour wasn't documented.

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.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions