Can boost::asio::thread_pool be used instead of combining boost::asio::io_context with a boost::thread::thread_group?

Can boost::asio::thread_pool be used instead of combining boost::asio::io_context with a boost::thread::thread_group?

I'm trying to clear up some confusion I have. I stumbled over&nbsp;<a href="https://www.boost.org/doc/libs/1_68_0/doc/html/boost_asio/reference/thread_pool.html" target="_blank">boost::asio::thread_pool</a>&nbsp;and I thought that one could use to somehow automatically combine&nbsp;<code>boost::asio::io_context</code>&nbsp;and&nbsp;<code>boost::thread::thread_group</code>&nbsp;like is often suggested (<a href="https://stackoverflow.com/a/19500405/1300177" target="_blank">here</a>&nbsp;or&nbsp;<a href="https://www.gamedev.net/blogs/entry/2249317-a-guide-to-getting-started-with-boostasio/" target="_blank">here</a>). It appears that this&nbsp;<code>asio</code>-specific pool can be used to&nbsp;<code>post</code>&nbsp;tasks to but, on the other hand, some networking types like&nbsp;<code>resolver</code>&nbsp;need to be passed an object&nbsp;<code>io_context</code>&nbsp;as a constructor parameter which&nbsp;<code>thread_pool</code>isn't and doesn't derive from.

I'm trying to clear up some confusion I have. I stumbled over boost::asio::thread_pool and I thought that one could use to somehow automatically combine boost::asio::io_context and boost::thread::thread_group like is often suggested (here or here). It appears that this asio-specific pool can be used to post tasks to but, on the other hand, some networking types like resolver need to be passed an object io_context as a constructor parameter which thread_poolisn't and doesn't derive from.

Angular 9 Tutorial: Learn to Build a CRUD Angular App Quickly

What's new in Bootstrap 5 and when Bootstrap 5 release date?

Brave, Chrome, Firefox, Opera or Edge: Which is Better and Faster?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

C/C++ vs. Rust: A developer’s perspective

In this post, you'll see the difference between Rust and C/C++ in a developer’s perspective

Variable Introduction in C#[Bangla]

LIKE | COMMENT | SHARE | SUBSCRIBE A variable is nothing but a name given to a storage area that our programs can manipulate. Each variable in C# has a speci...