mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-23 17:20:24 +08:00
29 lines
568 B
Go
29 lines
568 B
Go
//go:build windows
|
|
// +build windows
|
|
|
|
package proc
|
|
|
|
import "time"
|
|
|
|
// AddShutdownListener returns fn itself on windows, lets callers call fn on their own.
|
|
func AddShutdownListener(fn func()) func() {
|
|
return fn
|
|
}
|
|
|
|
// AddWrapUpListener returns fn itself on windows, lets callers call fn on their own.
|
|
func AddWrapUpListener(fn func()) func() {
|
|
return fn
|
|
}
|
|
|
|
// SetTimeToForceQuit does nothing on windows.
|
|
func SetTimeToForceQuit(duration time.Duration) {
|
|
}
|
|
|
|
// Shutdown does nothing on windows.
|
|
func Shutdown() {
|
|
}
|
|
|
|
// WrapUp does nothing on windows.
|
|
func WrapUp() {
|
|
}
|