Skip to content

Commit 8c6d880

Browse files
Remove async await issue comments
Thanks for the review!
1 parent 0049191 commit 8c6d880

1 file changed

Lines changed: 1 addition & 13 deletions

File tree

src/Web/WebMVC/Services/Utilities/HttpApiClient.cs

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,7 @@ public HttpApiClient()
1616
_client = new HttpClient();
1717
_logger = new LoggerFactory().CreateLogger(nameof(HttpApiClientWrapper));
1818
}
19-
20-
// Notice that these (and other methods below) are Task
21-
// returning asynchronous methods. But, they do not
22-
// have the 'async' modifier, and do not contain
23-
// any 'await statements. In each of these methods,
24-
// the only asynchronous call is the last (or only)
25-
// statement of the method. In those instances,
26-
// a Task returning method that does not use the
27-
// async modifier is preferred. The compiler generates
28-
// synchronous code for this method, but returns the
29-
// task from the underlying asynchronous method. The
30-
// generated code does not contain the state machine
31-
// generated for asynchronous methods.
19+
3220
public Task<string> GetStringAsync(string uri) =>
3321
_client.GetStringAsync(uri);
3422

0 commit comments

Comments
 (0)