-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PublishAsync doesn't return a result nor exception #1996
Comments
What exactly means "no result". Is there null returned or is there a wrong reason code? |
How do you expect to get a result if you don't read it into a variable? What about something like: public async Task Foo(byte[] data)
{
var x = await _mqttPublisher.Publish(topic1, data);
var y = await _mqttPublisher.Publish(topic2, data); // continues even though we didn't get a result nor exception
var z = await _mqttPublisher.Publish(topic3, data);
} |
What I would expect is that this line:
|
@don-pironet-hatch Please provide a full running example to that we can try to reproduce the problem. The code you posted contains a _mqttPublisher where the implementation is not clear and how it works internally. |
Describe the bug
When publishing async messages after each other we often don't get a result back and also no exception is thrown.
On top of that we also have seen cases that the awaits are all executed but with no result (which is weird because we don't see the the result of the publish and still it goes to the next publish).
Which component is your bug related to?
To Reproduce
Steps to reproduce the behavior:
Expected behavior
What we expect is or a result is returned either success or not OR an exception is thrown that something did go wrong
Code example
The text was updated successfully, but these errors were encountered: