go-zero/core/proc/shutdown+polyfill.go

29 lines
568 B
Go
Raw Normal View History

//go:build windows
2020-07-26 17:09:05 +08:00
// +build windows
package proc
import "time"
// AddShutdownListener returns fn itself on windows, lets callers call fn on their own.
2020-07-26 17:09:05 +08:00
func AddShutdownListener(fn func()) func() {
return fn
2020-07-26 17:09:05 +08:00
}
// AddWrapUpListener returns fn itself on windows, lets callers call fn on their own.
2020-07-26 17:09:05 +08:00
func AddWrapUpListener(fn func()) func() {
return fn
2020-07-26 17:09:05 +08:00
}
// SetTimeToForceQuit does nothing on windows.
func SetTimeToForceQuit(duration time.Duration) {
2020-07-26 17:09:05 +08:00
}
// Shutdown does nothing on windows.
func Shutdown() {
}
// WrapUp does nothing on windows.
func WrapUp() {
}