/
githubmirror
/
GoFrame
Обзор
Документация
Войти
/
githubmirror
/
GoFrame
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
os/gtimer/gtimer_exit.go
15 строк
591 B
John Guo
improve panic...recover of exit feature for package ghttp/gtimer/gfsnotify (#2000)
13 июл 2022, 15:20
Не верифицирован
13 июл 2022, 15:20
98b2e8a
Код
Авторство
О чём код?
// Copyright GoFrame Author(https://goframe.org). All Rights Reserved. // // This Source Code Form is subject to the terms of the MIT License. // If a copy of the MIT was not distributed with this file, // You can obtain one at https://github.com/gogf/gf. package gtimer // Exit is used in timing job internally, which exits and marks it closed from timer. // The timing job will be automatically removed from timer later. It uses "panic-recover" // mechanism internally implementing this feature, which is designed for simplification // and convenience. func Exit() { panic(panicExit) }