shutdown+polyfill.go 568 B

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