icinga2
icinga2 copied to clipboard
(WIP) Use AsioFuture to wait asynchronously on blocking tasks
This could be an alternative approach to get rid of the CpuBoundWork.
WIP for now, but discussions are welcome.
Blockers
- async_initiate was only added in boost-1.70
- The deduction of an async operation's return type was only added in boost-1.80
- There's a crashing bug in the coroutines' completion handler with handler-signatures including
std::exception_ptreven in the current version. I will report this to boost.asio, but on its own this wouldn't be too difficult to work around.
I'm clearly against new Boost packages, unless we AbSoLuTeLy NeEd them!
I fully agree with you here. I won't argue for shipping boost packages on targets where we don't already need them anyway.
The PR description is just to track which versions would be needed.