❔ Making an async method without anything to async inside
let's say i have following scenario:
the following method is blocking, but also don't have anything that can await inside.
how can i turn this example into
async Task Foo()
?3 Replies
seen some people were using Task.FromResult that i don't understand how it works
at least i can run this task and maybe await later
is it okey to do like this?
how? 😄
^ but stacktrace will be wrong
watched nick chapsas and he said returning a task without awaitng is not very good idea
Haven't really used but there is Parallel.For
Maybe that will help if you want it to be parallel
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.