util

package
v1.7.27-5 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// 最大消息长度
	DefaultBufferSize = 512 * 1024
	// 心跳间隔
	DefaultHeartbeatInterval = 15 * time.Second
	// 读取数据超时时间
	DefaultReaderTimeOut = 60 * time.Second
	// 服务守护间隔时长
	TcpWaitCallBackTimeOut = 15 * time.Second
)

时长控制

Variables

This section is empty.

Functions

This section is empty.

Types

type WaitGroupWrapper

type WaitGroupWrapper struct {
	sync.WaitGroup
}

协程等待结构体

func (*WaitGroupWrapper) Wrap

func (w *WaitGroupWrapper) Wrap(b func())

异步启动

Jump to

Keyboard shortcuts

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