摘要: iface.go package GabrielConfig import ( "context" "sync" ) type IGracefulExit interface { Cancel() GetCtx() context.Context GetWaitGroupInCtx() *sync. 阅读全文
posted @ 2020-12-30 16:32 路璐 阅读(859) 评论(0) 推荐(0) 编辑
摘要: package main import ( "errors" "math/rand" ) type CompareResult int // TODO 目前尚未实现并发安全,待办 const ( // 跳表节点key的比较回调函数返回值 -1:left<right;0:left==right;1:l 阅读全文
posted @ 2020-12-30 15:54 路璐 阅读(177) 评论(0) 推荐(0) 编辑