Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Allow plugins to expose their API (optionally over RPC as well) #292
There's no reason why plugins shouldn't be able to be controlled programmatically via their API.
After all, plugins are there to extend the framework's functionality; no sense treating them as dumb fire-and-forget components and not allowing them the option to expose their API, even over RPC if they so choose.
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
Reviewing this again, plugins don't actually need to be rewritten to work asynchronously in order for this to work. The existing threaded model of all plugins running in parallel would still work fine and async callbacks can be added for newer plugins if need be.
In addition, the Dispatcher's RPCD Handler code (that exposes RPC APIs for modular components dynamically) can be leveraged for this purpose too.
This needs much less work than originally estimated, yay.