github.com/lingyao2333/mo-zero@v1.4.1/core/proc/shutdown+polyfill.go (about) 1 //go:build windows 2 // +build windows 3 4 package proc 5 6 import "time" 7 8 // AddShutdownListener returns fn itself on windows, lets callers call fn on their own. 9 func AddShutdownListener(fn func()) func() { 10 return fn 11 } 12 13 // AddWrapUpListener returns fn itself on windows, lets callers call fn on their own. 14 func AddWrapUpListener(fn func()) func() { 15 return fn 16 } 17 18 func SetTimeToForceQuit(duration time.Duration) { 19 }