Reactor.run_n() returns #events delivered

This commit is contained in:
Roland Conybeare 2023-10-12 01:31:20 -04:00
commit 9adfbb822d
3 changed files with 9 additions and 8 deletions

View file

@ -54,7 +54,7 @@ namespace xo {
* otherwise dispatch up to n events.
* n = 0 is a noop
*/
void run_n(int32_t n);
std::uint64_t run_n(int32_t n);
/* borrow calling thread to run indefinitely.
* suitable implementation for dedicated reactor threads