You are on page 1of 1

ASYNC returnType()

var x = AWAIT anyTask();


(any code below will wait for the AWAIT anyTask to complete before it gets
executed)

DO NOT: use async void unless it's an event handler or delegate


block an async operation by calling Result or Wait()

DO: always use async and await together


always return a Task from async method

You might also like