Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
queue.php
1<?php
2
10namespace Bitrix\Main\Web\Http;
11
13
14abstract 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}
__construct(bool $backgroundJob=true)
Definition queue.php:16
wait(?Promise $targetPromise=null)