Is there a way to convert a list from List<>
to Task<List<>>
? I know Task<List<>>
to List<>
but I don't know to other direction.
Thanks,
Is there a way to convert a list from List<>
to Task<List<>>
? I know Task<List<>>
to List<>
but I don't know to other direction.
Thanks,
Have you tried Task.FromResult(list)
? Where list
is the variable storing reference to your Collection.