Click here to Skip to main content
15,867,308 members
Home / Discussions / C#
   

C#

 
GeneralRe: Skype Personal integration with C# Pin
Victor Nijegorodov28-Sep-22 20:14
Victor Nijegorodov28-Sep-22 20:14 
GeneralRe: Skype Personal integration with C# Pin
Member 1462363928-Sep-22 20:22
Member 1462363928-Sep-22 20:22 
GeneralRe: Skype Personal integration with C# Pin
Mycroft Holmes29-Sep-22 13:18
professionalMycroft Holmes29-Sep-22 13:18 
GeneralRe: Skype Personal integration with C# Pin
Member 1462363929-Sep-22 19:48
Member 1462363929-Sep-22 19:48 
QuestionAsync - await Pin
dataminers20-Sep-22 4:22
dataminers20-Sep-22 4:22 
AnswerRe: Async - await Pin
OriginalGriff20-Sep-22 4:57
mveOriginalGriff20-Sep-22 4:57 
GeneralRe: Async - await Pin
Richard Deeming20-Sep-22 5:01
mveRichard Deeming20-Sep-22 5:01 
AnswerRe: Async - await PinPopular
Richard Deeming20-Sep-22 5:06
mveRichard Deeming20-Sep-22 5:06 
The second code example doesn't block the thread; it blocks the rest of the method until the call has completed. The low-level thread is freed up to deal with other work until the ToListAsync call completes.

Think of it like a car journey: in the first sample, your kids (the thread) spend the whole time yelling "Are we there yet? Are we there yet? Are we there yet?" until you reach your destination; with the second sample, they get on with reading a book quietly until you tell them you've arrived. One of those scenarios makes for a much nicer journey. Wink | ;)



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer

GeneralRe: Async - await Pin
MarkTJohnson20-Sep-22 5:47
professionalMarkTJohnson20-Sep-22 5:47 
GeneralRe: Async - await Pin
dataminers21-Sep-22 0:04
dataminers21-Sep-22 0:04 
GeneralRe: Async - await Pin
Richard Deeming21-Sep-22 2:07
mveRichard Deeming21-Sep-22 2:07 
GeneralRe: Async - await Pin
dataminers21-Sep-22 5:33
dataminers21-Sep-22 5:33 
QuestionHow to make a license key system with Realtime DB? Pin
Moses Man19-Sep-22 0:11
Moses Man19-Sep-22 0:11 
AnswerRe: How to make a license key system with Realtime DB? Pin
OriginalGriff19-Sep-22 2:21
mveOriginalGriff19-Sep-22 2:21 
QuestionHow to create a many-to-many relationship between users in a table? Pin
Alex Wright 202216-Sep-22 6:16
Alex Wright 202216-Sep-22 6:16 
AnswerRe: How to create a many-to-many relationship between users in a table? Pin
Gerry Schmitz16-Sep-22 6:30
mveGerry Schmitz16-Sep-22 6:30 
GeneralRe: How to create a many-to-many relationship between users in a table? Pin
Alex Wright 202216-Sep-22 6:33
Alex Wright 202216-Sep-22 6:33 
GeneralRe: How to create a many-to-many relationship between users in a table? Pin
Gerry Schmitz16-Sep-22 6:42
mveGerry Schmitz16-Sep-22 6:42 
GeneralRe: How to create a many-to-many relationship between users in a table? Pin
Alex Wright 202216-Sep-22 6:55
Alex Wright 202216-Sep-22 6:55 
GeneralRe: How to create a many-to-many relationship between users in a table? Pin
Eddy Vluggen16-Sep-22 23:59
professionalEddy Vluggen16-Sep-22 23:59 
SuggestionRe: How to create a many-to-many relationship between users in a table? Pin
Richard Deeming19-Sep-22 21:16
mveRichard Deeming19-Sep-22 21:16 
QuestionProgram instalator in C#, Visual Studio Pin
Ismael_199912-Sep-22 5:36
Ismael_199912-Sep-22 5:36 
AnswerRe: Program instalator in C#, Visual Studio Pin
Gerry Schmitz12-Sep-22 6:21
mveGerry Schmitz12-Sep-22 6:21 
AnswerRe: Program instalator in C#, Visual Studio Pin
OG MAYOR MRL25-Sep-22 2:48
OG MAYOR MRL25-Sep-22 2:48 
Questionreading memory stream in byte chunks Pin
mjeeves10-Sep-22 8:41
mjeeves10-Sep-22 8:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.