phasync
QueueInterface / tryDequeue

Method

QueueInterface::tryDequeue

Takes the first value off the queue into $value, and returns whether there was one.

Description#

public QueueInterface::tryDequeue(
    mixed &$value
): bool

Parameters#

$value mixed

Return values#

False if the queue was empty bool

See also#

  • QueueInterface::tryPeekCopies the first value of the queue into $value, without removing it, and returns whether there was one.