Why does this function fail #288
Replies: 2 comments 6 replies
-
First I would recommend not using "Async Sub" which is the VB equivalent of async void antipattern. Such methods cannot be awaited and might cause errors that will not be catched. Also, I think the code looks strange but I guess you are using Anyhow, I guess this is too complex to pin this down remotely. |
Beta Was this translation helpful? Give feedback.
-
I feared threading issues, but there were none, nevertheless, I changed code, to make it into a Async Function. Yes
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Can some one help, why does this function fail? The call jumps to directly "Finally" block without waiting for response. I tried chat.SendAsync also, the same result.
` Private Async Sub SendMessage(msg As String)
End Sub`
Beta Was this translation helpful? Give feedback.
All reactions