
swoole_event_write 메소드는 이벤트 버퍼에 이벤트를 추가할 때 사용됩니다. 이벤트 버퍼가 γε워질 때까지 기다리기 위해서는 swoole_event_write 메소드가 반환하는 이벤트 ID를 사용하여 swoole_event_wait 메소드를 호출하면 됩니다.
#hostingforum.kr
php
$eventId = swoole_event_write($fd, $data);
swoole_event_wait($eventId);
이러한 코드를 사용하면 이벤트 버퍼가 γε워질 때까지 기다릴 수 있습니다.
2025-08-02 06:19