INNER CODE UNIT · Go

IsRunning

OpenListTeam/OpenList-Mobile · openlist-lib/openlistlib/server.go:54

func IsRunning(t string) bool {
	return bootstrap.IsRunning(t)
}

// Start starts the server
func Start() {
	bootstrap.Start()
}

// Shutdown timeout 毫秒
func Shutdown(timeout int64) (err error) {
	timeoutDuration := time.Duration(timeout) * time.Millisecond
	bootstrap.Shutdown(timeoutDuration)

	// Force database sync before shutdown
	ForceDBSync()
	//bootstrap.Release()
	return nil

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…