Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
queue.php
1
<?php
2
10
namespace
Bitrix\Main\Web\Http
;
11
12
use
Bitrix\Main\Application
;
13
14
abstract
class
Queue
15
{
16
public
function
__construct
(
bool
$backgroundJob =
true
)
17
{
18
if
($backgroundJob)
19
{
20
// wait for promises if no one called wait()
21
Application::getInstance
()->addBackgroundJob([$this,
'wait'
], [],
Application::JOB_PRIORITY_LOW
);
22
}
23
}
24
31
abstract
public
function
wait
(?
Promise
$targetPromise =
null
): array;
32
}
Bitrix\Main\Application
Definition
application.php:28
Bitrix\Main\Application\JOB_PRIORITY_LOW
const JOB_PRIORITY_LOW
Definition
application.php:30
Bitrix\Main\Application\getInstance
static getInstance()
Definition
application.php:95
Bitrix\Main\Web\Http\Promise
Definition
promise.php:17
Bitrix\Main\Web\Http\Queue
Definition
queue.php:15
Bitrix\Main\Web\Http\Queue\__construct
__construct(bool $backgroundJob=true)
Definition
queue.php:16
Bitrix\Main\Web\Http\Queue\wait
wait(?Promise $targetPromise=null)
Bitrix\Main\Web\Http
Definition
clientexception.php:3
modules
main
lib
web
http
queue.php
Создано системой
1.10.0