rumqtt icon indicating copy to clipboard operation
rumqtt copied to clipboard

Implement `Broker::spawn` method

Open Bergmann89 opened this issue 2 years ago • 2 comments

The Broker::spawn can be used to only spawn the broker tasks without the console interface of the broker.

Bergmann89 avatar Nov 30 '22 14:11 Bergmann89

This PR seems to be much more than just spawning the broker. This enables customization of spawn's runtime. Can you let me know the motivation behind this? Are you facing any problem with tokio's current thread runtime (per listener)?

tekjar avatar Dec 05 '22 13:12 tekjar

I already have a tokio runtime in my application and I want to spawn all tasks within this runtime. So the balancing of the different tasks could be managed by a single instance of the runtime (which may increase performance).

Bergmann89 avatar Dec 05 '22 14:12 Bergmann89