« Swoole\Table::valid
Search
Swoole\Timer::after »
PHP Manual
Swoole
A classe Swoole\Timer
A classe Swoole\Timer
(PECL swoole >= 1.9.0)
Introdução
Resumo da classe
class
Swoole\Timer
{
/* Métodos */
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
}
Índice
Swoole\Timer::after
— Aciona uma função de retorno de chamada após um período de tempo.
Swoole\Timer::clear
— Exclui um temporizador pelo ID do temporizador.
Swoole\Timer::clearAll
— Clear all timers in the current process.
Swoole\Timer::exists
— Verifica se um temporizador existe.
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
— Repete uma função fornecida em cada intervalo de tempo especificado.
↑
and
↓
to navigate •
Enter
to select •
Esc
to close •
/
to open