Task.Run async publish
Torinth opened this issue · 2 comments
Torinth commented
Hi, is there a way for async publish to do something like where it executes Task.Run to publish the message as such? I am currently having to manually wrap a few publishes in Task.Run.
_publisher.Publish(new MyMessage(), AsyncPublishStrategy.Background);
cosmin19 commented
I have the same situation. If a message handler throws an error, the Publish method (called before) will await for all the next messages to be published(I have an error filter for this), instead of just forget about it and move forward. If I wrap the Publish with a Task.Run, everything works as it should.
github-actions commented
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days.