
SwooleChannel::pop 메서드는 메시지가 없을 때 null을 반환합니다.
#hostingforum.kr
php
$channel = new SwooleChannel(10);
$channel->push('메시지');
$pop = $channel->pop();
if ($pop !== null) {
echo "메시지: $popn";
} else {
echo "메시지가 없습니다.n";
}
이러한 방식으로 메시지가 없을 때 처리할 수 있습니다.
2025-07-15 18:59