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