Select Git revision
stoppable.go

Sydney Anne Erickson authored
stoppable.go 653 B
///////////////////////////////////////////////////////////////////////////////
// Copyright © 2020 xx network SEZC //
// //
// Use of this source code is governed by a license that can be found in the //
// LICENSE file //
///////////////////////////////////////////////////////////////////////////////
package stoppable
import "time"
// Interface for stopping a goroutine.
type Stoppable interface {
Close(timeout time.Duration) error
IsRunning() bool
Name() string
}