lev.stats

lev

stats() -> stats

Get fast loop stats snapshot

Returns a table with loop counters: active_coros, registered_fds, timer_count, ready_count (from C core), and task_count (Lua-side count of entries in the task registry). Returns nil outside lev.run().