"...goshimmer_without_tipselection.git" did not exist on "913dc537635a492394b0a8ba9b3fb5efad109513"
Select Git revision
This project manages its dependencies using Go Modules.
Learn more
sleep.go 238 B
package timeutil
import (
"time"
"github.com/iotaledger/goshimmer/packages/daemon"
)
func Sleep(interval time.Duration) bool {
select {
case <-daemon.ShutdownSignal:
return false
case <-time.After(interval):
return true
}
}