Distribt icon indicating copy to clipboard operation
Distribt copied to clipboard

RabbitMQ: messgereceiver locks the Thread

Open ElectNewt opened this issue 3 years ago • 0 comments

rabbitmq gets processed on a synchronous way, but the handler is asycn. for that reason we have to run the handler inside a task

var t = Task.Run(HandleMessage);
        t.Wait();

but this blocks the trhead, ideally if possible, this should be done in a different way.

ElectNewt avatar Jan 13 '22 00:01 ElectNewt