icinga2 icon indicating copy to clipboard operation
icinga2 copied to clipboard

(WIP) Use AsioFuture to wait asynchronously on blocking tasks

Open jschmidt-icinga opened this issue 1 year ago • 1 comments

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_ptr even in the current version. I will report this to boost.asio, but on its own this wouldn't be too difficult to work around.

jschmidt-icinga avatar Nov 07 '25 10:11 jschmidt-icinga

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.

jschmidt-icinga avatar Nov 10 '25 07:11 jschmidt-icinga