shutdown+polyfill.go 393 B

123456789101112131415161718
  1. // +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. func SetTimeoutToForceQuit(duration time.Duration) {
  13. }