2021-09-12 15:41:33 +08:00
|
|
|
//go:build windows
|
2020-07-26 17:09:05 +08:00
|
|
|
// +build windows
|
|
|
|
|
|
|
|
package proc
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
2021-01-13 18:43:42 +08:00
|
|
|
// 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() {
|
2021-01-13 18:40:39 +08:00
|
|
|
return fn
|
2020-07-26 17:09:05 +08:00
|
|
|
}
|
|
|
|
|
2021-01-13 18:43:42 +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() {
|
2021-01-13 18:40:39 +08:00
|
|
|
return fn
|
2020-07-26 17:09:05 +08:00
|
|
|
}
|
|
|
|
|
2021-08-04 11:31:33 +08:00
|
|
|
func SetTimeToForceQuit(duration time.Duration) {
|
2020-07-26 17:09:05 +08:00
|
|
|
}
|