gogo

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: LGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Go

func Go(fun func(ctx context.Context) error, opts ...Option) error

Go 框架处理协程,用于优雅启停

func Wait

func Wait()

Wait 等待所有协程结束

Types

type Option

type Option func(*Options)

func WithContext

func WithContext(ctx context.Context) Option

type Options

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

Jump to

Keyboard shortcuts

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