public
async
Task<ObservableCollection<Vehicle>> GetDataAsync(
string
vehicleId)
What I have tried:
i am calling this method using below code.
var
data = GetDataAsync(
"
123"
);
i am getting the following error message.
Id = 9, Status = WaitingForActivation, Method = "{null}", Result = "{Not yet computed}
can any one help how to call methods.
Thanks..
var result = await task;
But it seems from error that the calling method is also calling another async so better if use await
plz check also
Asynchronous Programming with Async and Await (C# and Visual Basic)
[
^
]
Read the question carefully.
Understand that English isn't everyone's first language so be lenient of bad
spelling and grammar.
If a question is poorly phrased then either ask for clarification, ignore it, or
edit the question
and fix the problem. Insults are not welcome.
Don't tell someone to read the manual. Chances are they have and don't get it.
Provide an answer or move on to the next question.
Let's work to help developers, not make them feel stupid.