网站首页
编程语言
数据库
系统相关
其他分享
编程问答
flushInterval
2024-10-25
Go批量读取channel的数据
packagemainimport("fmt""time")funcbatchProcessor(ch<-chanstring,batchSizeint,flushIntervaltime.Duration){varbatch[]stringtimer:=time.NewTimer(flushInterval)for{