Skip to content

Conversation

@jkarneges
Copy link
Member

@jkarneges jkarneges commented Oct 21, 2025

This adds a C++ API for working with Reactor and Executor.

The plan is to allow proxy and handler to work with these objects so that they may run their EventLoop as a Future within an Executor. This will make proxy and handler evented execution consistent with how connmgr works (i.e. always through an Executor), and will allow running other Futures concurrent with the EventLoop in the same thread. The EventLoop implementation already supports being run as a Future (via EventLoop::exec_async()), so getting this to work is mostly a matter of exposing the needed pieces to C++.

To start out, this PR adds an initial API to allow constructing Reactor and Executor from C++, as well as running the Executor.

@jkarneges jkarneges requested a review from a team October 21, 2025 17:27
@jkarneges jkarneges merged commit c2c293e into main Oct 21, 2025
19 checks passed
@jkarneges jkarneges deleted the jkarneges/executor-reactor-ffi branch October 21, 2025 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants