golang的select典型用法
摘要:
golang 的 select 的功能和 select, poll, epoll 相似, 就是监听 IO 操作,当 IO 操作发生时,触发相应的动作。 示例: ch1 := make (chan int, 1) ch2 := make (chan int, 1) ... select { case 阅读全文
posted @ 2021-07-30 14:37 ExplorerMan 阅读(905) 评论(0) 推荐(0) 编辑