Closed NOBLES5E closed 6 years ago
Hello @ikzk, thanks for checking the readme, but this is not a typo, the record field allStudents
has type Async<Student list>
, so I need to evaluate getStudents
when constructing the record field
If allStudents
had the type unit -> Async<Student list>
then I wouldn't need to use ()
but that is not the case here, see for yourself that this actually compiles in this dotnet fiddle sample
Gotcha. Thanks for your comments!
It seems that in the readme, the following example code has an extra
()