routine

package
v0.0.0-...-ded745d Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultTimeout = 30 * time.Second

Variables

This section is empty.

Functions

func Go

func Go(function interface{}, params ...interface{})

Go waiting `function` finished in `timeout` time param num in `function` must equal param num in `params` param type in `function` must equal param type in `params`

func GoWithTimeout

func GoWithTimeout(timeout time.Duration, function interface{}, params ...interface{})

func Init

func Init()

Init grace service

func Wait

func Wait()

Wait until all goroutine run by `Go` finished in timeout time.

Types

type Service

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

Jump to

Keyboard shortcuts

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