% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/callbacks.R
\name{tcc_callback_async_drain}
\alias{tcc_callback_async_drain}
\title{Drain the async callback queue}
\usage{
tcc_callback_async_drain()
}
\value{
NULL (invisible)
}
\description{
Execute any pending async callbacks immediately on the main R thread.
Normally callbacks fire automatically via R's event loop (input
handler on POSIX, message pump on Windows), so explicit draining is
only needed in test harnesses or tight batch loops that never yield
to R's event loop.
}
\details{
TCC-compiled C code running on the main thread can call
\code{RC_callback_async_drain_c()} directly instead of returning to R.
}
