Skip to content

tour: Add timestamps to default selection example for clearer visualisation #1733

@murali-kri5hna

Description

@murali-kri5hna

Context: https://go.dev/tour/concurrency/6

The current select timing example effectively demonstrates the default case behavior, but the actual timing is invisible to learners. This makes it harder to understand the 50ms sleep intervals in the default case and how they interact with the 100ms tick intervals.

Example output with timestamps:

[    0s] .
[   50ms] .
[  100ms] tick.
[  100ms] .
[  150ms] .
[  200ms] tick.
.
.
.
[  500ms] BOOM!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions