mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 10:08:15 -05:00
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()
|
||
|
}
|