« Swoole\Table::valid
Search
Swoole\Timer::after »
PHP Manual
Swoole
Класс Swoole\Timer
Класс Swoole\Timer
(PECL swoole >= 1.9.0)
Введение
Обзор класса
class
Swoole\Timer
{
/* Методы */
public
static
function
after
(
int
$after_time_ms
,
callable
$callback
):
void
public
static
function
clear
(
int
$timer_id
):
void
public
static
function
clearAll
():
bool
public
static
function
exists
(
int
$timer_id
):
bool
public
static
function
info
(
int
$timer_id
):
?
array
public
static
function
list
():
Swoole\Timer\Iterator
public
static
function
set
(
array
$settings
):
void
public
static
function
stats
():
array
public
static
function
tick
(
int
$interval_ms
,
callable
$callback
,
string
$param
= ?
):
void
}
Содержание
Swoole\Timer::after
— Запускает callback-функцию через определённый промежуток времени
Swoole\Timer::clear
— Удаляет таймер по идентификатору
Swoole\Timer::clearAll
— Clear all timers in the current process.
Swoole\Timer::exists
— Проверяет, существует ли таймер
Swoole\Timer::info
— Get information about a timer.
Swoole\Timer::list
— Get an iterator over the timers of the current process
Swoole\Timer::set
— Set timer-related parameters
Swoole\Timer::stats
— Get timer statistics.
Swoole\Timer::tick
— Повторяет данную функцию в каждый заданный интервал времени
↑
and
↓
to navigate •
Enter
to select •
Esc
to close •
/
to open