Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
malakai521
11mo ago
0 comments
Share
`var post = await _postService.getById(id);`
the F# equivalent is
`let! post = _postService.getById id`
0 comments
default
newest
oldest
alternatex
11mo ago
You're missing the task {} block
neonsunset
11mo ago
This assumes the context is already a task computation expression, which is what you'd have in asynchronous code.
sWW26
11mo ago
and the C# is missing the `async Task` boilerplate
j
/
k
navigate · click thread line to collapse