mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-30 00:25:52 +00:00
@@ -35,8 +35,9 @@ struct MockAsyncRPCEngine
|
||||
using namespace boost::asio;
|
||||
io_context ioc;
|
||||
|
||||
spawn(ioc, [handler = std::forward<Fn>(func), _ = make_work_guard(ioc.get_executor())](auto yield) mutable {
|
||||
spawn(ioc, [handler = std::forward<Fn>(func), _ = make_work_guard(ioc)](auto yield) mutable {
|
||||
handler(yield);
|
||||
;
|
||||
});
|
||||
|
||||
ioc.run();
|
||||
|
||||
Reference in New Issue
Block a user