run

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: MulanPSL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Go

func Go(intention string, fun func())

为实现intention执行一次fun,产生panic停止本次任务,并打印错误信息.

func GoLoop

func GoLoop(intention string, gap time.Duration, fun func())

为实现intention每隔gap执行一次fun,产生panic只停止本次任务,并打印错误信息.

func Panic

func Panic(err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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