Re:Why F#?
by alternatex on Tuesday April 01, 2025 @01:08PM
(#43549167)
You're missing the task {} block
Re:Why F#?
by neonsunset on Tuesday April 01, 2025 @01:35PM
(#43549495)
This assumes the context is already a task computation expression, which is what you'd have in asynchronous code.
the F# equivalent is
`let! post = _postService.getById id`