📜  go select timeout - Go 编程语言 - Go 编程语言代码示例
📅  最后修改于: 2022-03-11 14:45:01.678000             🧑  作者: Mango
代码示例1
select {
case msg = <- funcWaitingFor():
// do logic
case time.After(time.Second):
// timeout logic
}