← All built-ins / ui_alive()

ui_alive()

ui_alive(...$args): bool

Parameters

Takes no arguments.

Return value

true while the event loop is still running.

Example

echo "while (ui_alive()) { /* polling alternative */ }";
while (ui_alive()) { /* polling alternative */ }

This call needs a real environment (window, server, database or stdin) — the snippet above shows the typical usage shape.

See also

ui_run_main()ui_quit()