throwing exception in let run clause is thrown when value is not null
Solution 1:
let
returns whatever the lambda returns. await()
probably doesn't return anything, which is why the run
is executed.
You probably want to replace let
with also
. This works the same as let
except it returns whatever object it is called on instead of the lambda result.
See also Function selection