Y
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
alternatex
448 days ago
You're missing the task {} block
link
neonsunset
448 days ago
This assumes the context is already a task computation expression, which is what you'd have in asynchronous code.
link
sWW26
447 days ago
and the C# is missing the `async Task` boilerplate
link