Skip to content

Releases: gol4ng/signal

v1.1.0

16 Aug 16:45
Compare
Choose a tag to compare

Expose KillerSubscriber & SubscribeWithKiller function to allow graceful stop of an app when the following signals are triggered:

  • os.Kill
  • os.Interrupt
  • syscall.SIGHUP
  • syscall.SIGTERM
  • syscall.SIGQUIT
  • syscall.SIGSTOP

also allow killing an app after a second stop signal is triggered (ex: 2x ctr+c)

v1.0.0

04 Aug 17:44
Compare
Choose a tag to compare

Expose Subscribe function to allow users to react to os.signal