github.com/gogf/gf/v2@v2.7.4/os/gtimer/gtimer_exit.go (about) 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 7 package gtimer 8 9 // Exit is used in timing job internally, which exits and marks it closed from timer. 10 // The timing job will be automatically removed from timer later. It uses "panic-recover" 11 // mechanism internally implementing this feature, which is designed for simplification 12 // and convenience. 13 func Exit() { 14 panic(panicExit) 15 }