Hacker News new | ask | show | jobs
by malakai521 448 days ago
`var post = await _postService.getById(id);`

the F# equivalent is

`let! post = _postService.getById id`

1 comments

You're missing the task {} block
This assumes the context is already a task computation expression, which is what you'd have in asynchronous code.
and the C# is missing the `async Task` boilerplate