Binding tasks together with https://github.com/louthy/language-ext requires tasks with return type (Task<>
). Tasks without return type should therefore be converted into Task<Unit>
.
Does anybody know a compact (expression only) way to convert Task
to Task<Unit>
in C# -- with (or without) using Language-Ext?
In other words: Is there something like fun(...)
for Task
?