mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-24 01:30:25 +08:00
19 lines
390 B
Go
19 lines
390 B
Go
// +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
|
|
}
|
|
|
|
func SetTimeToForceQuit(duration time.Duration) {
|
|
}
|