gtimer_exit.go 591 B

123456789101112131415
  1. // Copyright GoFrame Author(https://goframe.org). All Rights Reserved.
  2. //
  3. // This Source Code Form is subject to the terms of the MIT License.
  4. // If a copy of the MIT was not distributed with this file,
  5. // You can obtain one at https://github.com/gogf/gf.
  6. package gtimer
  7. // Exit is used in timing job internally, which exits and marks it closed from timer.
  8. // The timing job will be automatically removed from timer later. It uses "panic-recover"
  9. // mechanism internally implementing this feature, which is designed for simplification
  10. // and convenience.
  11. func Exit() {
  12. panic(panicExit)
  13. }