shutdown+polyfill.go 550 B

123456789101112131415161718192021222324252627
  1. //go:build windows
  2. package proc
  3. import "time"
  4. // AddShutdownListener returns fn itself on windows, lets callers call fn on their own.
  5. func AddShutdownListener(fn func()) func() {
  6. return fn
  7. }
  8. // AddWrapUpListener returns fn itself on windows, lets callers call fn on their own.
  9. func AddWrapUpListener(fn func()) func() {
  10. return fn
  11. }
  12. // SetTimeToForceQuit does nothing on windows.
  13. func SetTimeToForceQuit(duration time.Duration) {
  14. }
  15. // Shutdown does nothing on windows.
  16. func Shutdown() {
  17. }
  18. // WrapUp does nothing on windows.
  19. func WrapUp() {
  20. }