mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-02-03 00:38:40 +08:00
37c3b9f5c1
* make sure unlock safe even if listeners panic * fix #378 * fix #378
19 lines
393 B
Go
19 lines
393 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 SetTimeoutToForceQuit(duration time.Duration) {
|
|
}
|