github.com/GeniusesGroup/libgo@v0.0.0-20220929090155-5ff932cb408e/timer/const.go (about)

     1  /* For license and copyright information please see the LEGAL file in the code repository */
     2  
     3  package timer
     4  
     5  import (
     6  	"github.com/GeniusesGroup/libgo/time/monotonic"
     7  )
     8  
     9  // maxWhen is the maximum value for timer's when field.
    10  const maxWhen monotonic.Time = 1<<63 - 1 // math.MaxInt64
    11  
    12  // verifyTimers can be set to true to add debugging checks that the
    13  // timer heaps are valid.
    14  const verifyTimers = false
    15  
    16  // The default heap ary is 4-ary. See siftUpTimer and siftDownTimer.
    17  const heapAry = 4