Forum Xamarin.Forms

Correct way of using Navigation.PopAsync

How should Navigation.PopAsync be used , eg. from a "Cancel" button click:

Does it make any difference whether it is called with or without await ?

public  void cancelClick(View view){

  doSomeCleanUpStuff(); 

    Navigation.PopAsync(false);

// Alternatives (need "async" keyword before "void"):
   //await Navigation.PopAsync(false);
  //await Navigation.PopAsync(false).ConfigureAwait(false);

}
Sign In or Register to comment.