Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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.
Click to show internal directories.
Click to hide internal directories.