goroutineKit

package
v3.0.97 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Goexit func() = runtime.Goexit

Goexit 退出当前goroutine.

Functions

func GetGoroutineId

func GetGoroutineId() uint64

GetGoroutineId 获取协程的id

DEPRECATED: 在go语言中,谷歌开发者不建议大家获取协程ID,主要是为了GC更好的工作,滥用协程ID会导致GC不能及时回收内存。如果一个第三方库使用了协程ID,那么使用该库的人将会莫名中招.

golang 获取goroutineID

https://studygolang.com/articles/19794

Golang - 获取协程ID,从此走上一条曲折的不归路

https://blog.csdn.net/wyansai/article/details/101004226

Types

This section is empty.

Jump to

Keyboard shortcuts

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