Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GoEdgeLab/EdgeNode
/ Next
Method
Next
internal/utils/ticker.go:29–36 ·
view source on GitHub ↗
Next 查找下一个Tick
()
Source
from the content-addressed store, hash-verified
27
28
// Next 查找下一个Tick
29
func
(this *Ticker) Next() bool {
30
select
{
31
case
<-this.raw.C:
32
return
true
33
case
<-this.done:
34
return
false
35
}
36
}
37
38
// Stop 停止
39
func
(this *Ticker) Stop() {
Callers
15
TestTicker
Function · 0.95
TestTicker_StopTwice
Function · 0.95
Every
Function · 0.95
BenchmarkGzipWriter_Write_Parallel
Function · 0.80
BenchmarkZSTDWriter_Write_Parallel
Function · 0.80
BenchmarkBrotliReader
Function · 0.80
BenchmarkBrotliWriter_Write_Parallel
Function · 0.80
BenchmarkBytePool_Get_Parallel
Function · 0.80
BenchmarkBytePool_Get_Sync
Function · 0.80
BenchmarkBytePool_Get_Sync2
Function · 0.80
BenchmarkBytePool_Copy_Bytes_4
Function · 0.80
BenchmarkBytePool_Copy_Wrapper_4
Function · 0.80
Calls
no outgoing calls
Tested by
15
TestTicker
Function · 0.76
TestTicker_StopTwice
Function · 0.76
BenchmarkGzipWriter_Write_Parallel
Function · 0.64
BenchmarkZSTDWriter_Write_Parallel
Function · 0.64
BenchmarkBrotliReader
Function · 0.64
BenchmarkBrotliWriter_Write_Parallel
Function · 0.64
BenchmarkBytePool_Get_Parallel
Function · 0.64
BenchmarkBytePool_Get_Sync
Function · 0.64
BenchmarkBytePool_Get_Sync2
Function · 0.64
BenchmarkBytePool_Copy_Bytes_4
Function · 0.64
BenchmarkBytePool_Copy_Wrapper_4
Function · 0.64
BenchmarkBytePool_Copy_Bytes_16
Function · 0.64