摘要: 1.实现map requirement: 实现阻塞读且并发安全的map GO⾥⾯MAP如何实现key不存在 get操作等待 直到key存在或者超时,保证并发安全 implementation: package main import ( "fmt" "sync" "time" ) type sp i 阅读全文
posted @ 2023-12-05 16:57 PEAR2020 阅读(5) 评论(0) 推荐(0) 编辑