I'm writing a outlook addin with VSTO VB and want to create a async sub. This is the following code:
Public Async Sub TestAsync()
Msgbox("test")
End Sub
But after the Async, the compiler says: "End of statement expected".
I also tried to make a function instead, but with no success(same error):
Public Async Function TestAsync() As Task
Msgbox("test")
End Function
What I'm missing with the async declaration?