mirror of https://github.com/v2ray/v2ray-core
11 lines
304 B
Go
11 lines
304 B
Go
package common
|
|
|
|
// Runnable is the interface for objects that can start to work and stop on demand.
|
|
type Runnable interface {
|
|
// Start starts the runnable object. Upon the method returning nil, the object begins to function properly.
|
|
Start() error
|
|
|
|
// Close stops the object being working.
|
|
Close()
|
|
}
|