clock

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package clock contains functions and types related to time.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SafeTimer

type SafeTimer struct {
	// contains filtered or unexported fields
}

SafeTimer wraps the Go timer to provide deadlock-free resetting

func NewSafeTimer

func NewSafeTimer(timeout time.Duration) *SafeTimer

func (*SafeTimer) C

func (stimer *SafeTimer) C() <-chan time.Time

func (*SafeTimer) Reset

func (stimer *SafeTimer) Reset()

func (*SafeTimer) Stop

func (stimer *SafeTimer) Stop()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL