timer

package
v0.2.97 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TimedCallback

func TimedCallback(ctx context.Context, d time.Duration, callback func())

Types

type CallbackFactory

type CallbackFactory func(...interface{}) func()

type TimeOutService

type TimeOutService struct {
	CallbackFactory CallbackFactory
}

func NewTimeOutService

func NewTimeOutService(cbf CallbackFactory) *TimeOutService

func (*TimeOutService) AddNewTimeOut

func (s *TimeOutService) AddNewTimeOut(ctx context.Context, d time.Duration, args ...interface{})

Jump to

Keyboard shortcuts

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