-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Open
Description
Hi, I don't understand what does this syntax mean in the struct on chapter 7, 'runner' example:
// Runner runs a set of tasks within a given timeout and can be
// shut down on an operating system interrupt.
type Runner struct {
// interrupt channel reports a signal from the
// operating system.
interrupt chan os.Signal
// complete channel reports that processing is done.
complete chan error
// timeout reports that time has run out.
timeout <-chan time.Time
// tasks holds a set of functions that are executed
// synchronously in index order.
tasks []func(int)
}
Why this is the only channel that gets the syntax -<chan time.Time ?
Thanks !
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels