gobase

package module
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2021 License: MIT Imports: 7 Imported by: 0

README

go-base

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteWithInterval added in v0.0.5

func ExecuteWithInterval(ctx context.Context, duration time.Duration, task func())

func OnShutdown added in v0.0.4

func OnShutdown(callback func())

not safe, can raise panics

Types

type SafeExecutor

type SafeExecutor struct {
	errors.ErrorNotifier
}

func (SafeExecutor) Handle

func (handler SafeExecutor) Handle(executor func() error) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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