github.com/MetalBlockchain/metalgo@v1.11.9/snow/engine/common/timer.go (about)

     1  // Copyright (C) 2019-2024, Ava Labs, Inc. All rights reserved.
     2  // See the file LICENSE for licensing terms.
     3  
     4  package common
     5  
     6  import "time"
     7  
     8  // Timer describes the standard interface for specifying a timeout
     9  type Timer interface {
    10  	// RegisterTimeout specifies how much time to delay the next timeout message
    11  	// by. If the subnet has been bootstrapped, the timeout will fire
    12  	// immediately.
    13  	RegisterTimeout(time.Duration)
    14  }