Skip to content

I think you should avoid task.Wait() #3

Open
@saramgsilva

Description

@saramgsilva

This kind of things "task.Wait();" can create deadlocks, you should not use it.

        var task = Task.Run(async () => { 
            Service = await MemoryDirectoryService.FromCsv("XamarinDirectory.csv"); 
        });
        task.Wait();

you should do only

             Service = await MemoryDirectoryService.FromCsv("XamarinDirectory.csv"); 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions