shutdown+polyfill.go 409 B

12345678910111213141516171819
  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. func SetTimeToForceQuit(duration time.Duration) {
  14. }