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

20 lines
409 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
}
func SetTimeToForceQuit(duration time.Duration) {
2020-07-26 17:09:05 +08:00
}