Open soareseneves opened 5 years ago
@soareseneves I think you've confused the behavior of the Async method. Only the request is made async, your code will block and wait for the request to finish, example:
Events := FClient.Resource(URL)
.Accept(RestUtils.MediaType_Json)
.Async
.Get<TEvents>;
The advantage is that you can cancel the request at any time if it takes too much time to finish.
Using the Async request example there is no way to get the actual result from the request, how can I get it? Shouldn't the Response Content be added as a parameter of OnAsyncRequestProcess procedure?