Aaron2932

导航

随笔分类 -  Go

Golang-Context库的使用
摘要:context库简介 一些场景 多线程处理任务 v01版本,等待 package main import ( "fmt" "time" ) func main() { start := time.Now() go func(name string) { time.Sleep(time.Second 阅读全文

posted @ 2022-08-13 11:47 Aaron2932 阅读(37) 评论(0) 推荐(0)