Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Deadline ¶ added in v0.5.0
type Deadline struct {
// contains filtered or unexported fields
}
Deadline is an abstraction for handling timeouts.
func MakeDeadline ¶ added in v0.5.0
func MakeDeadline() Deadline
func (*Deadline) Set ¶ added in v0.5.0
Set sets the point in time when the deadline will time out. A timeout event is signaled by closing the channel returned by waiter. Once a timeout has occurred, the deadline can be refreshed by specifying a t value in the future.
A zero value for t prevents timeout.
Click to show internal directories.
Click to hide internal directories.