Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8290309
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T12:46:10+00:00 2026-06-08T12:46:10+00:00

i am new to metro application development, i request you to help me understand

  • 0

i am new to metro application development, i request you to help me understand the usage of async and await key words ,

As per my knowledge i understood that we async and await both simultaneously.

But if one method / function is mention as async :-

private async void Button_Click_1(object sender, RoutedEventArgs e)
{
    Uri inputUri  = new Uri("http://examplewebservices");

    try
    {

   string result =  await httpClient.GetStringAsync(inputUri);

///
i have to do some operations on this string result here 
///

    }
    catch (Exception ex)
    {

    }
}    

1)what happens will a separate thread is created ?, and every thing inside that runs asynchronously ?

2)What will await keyword do here ?

3)if it is asynchronous , there is place in the code where i need to perform some operations on string result , if that is not completed it would show a error right ?

Please guide me out.

Thanks in Advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T12:46:11+00:00Added an answer on June 8, 2026 at 12:46 pm

    Please read my async/await intro.

    1)what happens will a separate thread is created ?, and every thing inside that runs asynchronously ?

    No. async methods are synchronous until they await an operation that isn’t completed.

    2)What will await keyword do here ?

    It will asynchronously wait until the operation completes.

    In this case, it will return back to the message loop and schedule the remainder of the method to run (on the UI thread) after the download completes.

    3)if it is asynchronous , there is place in the code where i need to perform some operations on string result , if that is not completed it would show a error right ?

    No. Because of the await, the rest of the method won’t run until the download is complete.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am new to windows 8 metro apps development and i need your help
I'm working on a Metro style application in the new WinRT (.NET 4.5) framework
I am new to Windows-8 metro app development, I am developing my app using
Apologize if i am wrong, i am new to metro apps i need multiple
I'm trying to use mechanize to grab prices for New York's metro-north railroad from
I am writing a metro app. This works: HttpClient client = new HttpClient(); var
New to Node.js and Express, I am trying to understand the two seems overlapping
New programmer here, I am trying to understand and break down this code below
I'm working on a new Asp.Mvc3 application that will go line about the same
In a situation where you have the UI frontend built using the new Metro

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.