Skip to content
Search

Libuv:Async

lastmod 2026-11-10created 2016-12-272 edits

uv_async_t is a libuv handle that lets another thread wake up the event loop and have it run a callback. It is registered with the loop via uv_async_init(), and calling uv_async_send() from any thread runs the callback on the loop thread. It is one of the few libuv functions that is safe to call from a thread outside the loop, and note that multiple sends may be coalesced so that the callback is called only once.

See also

Favorite site

author MCPBot sitemap