When do the asynchronous tasks start and stop, and how does this happen.
Asynchronous means without timing or not happening at the same time.
The async task starts and completes at an some point in the future. The task alerts the system when it completes so the system can
process the results. There can be multiple async tasks running at the same time rather than processing one step at a time. This decreases the overall time it takes to return a response to the browser.
There a lot more to learn about the async/await programming pattern than my incomplete and brief explanation.
My program needs to check a list for a new item and if so buttons are enabled.
This question has little to do with async programming although you might be using an async/await programming pattern.
Implement a JavaScript timer that sends HTTP requests at some frequency which checks on the state of the "new items". There's also a framework like SignalR which opens a persistent connection between the browser and a web server. The web server can send
messages to the browser when a "new item" happens.
All-Star
53641 Points
24015 Posts
Re: I Have Questions Using PageAsyncTask Class for ASP.NET with C#
Sep 16, 2019 03:24 PM|mgebhard|LINK
Asynchronous means without timing or not happening at the same time. The async task starts and completes at an some point in the future. The task alerts the system when it completes so the system can process the results. There can be multiple async tasks running at the same time rather than processing one step at a time. This decreases the overall time it takes to return a response to the browser.
There a lot more to learn about the async/await programming pattern than my incomplete and brief explanation.
https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/concepts/async/
This question has little to do with async programming although you might be using an async/await programming pattern.
Implement a JavaScript timer that sends HTTP requests at some frequency which checks on the state of the "new items". There's also a framework like SignalR which opens a persistent connection between the browser and a web server. The web server can send messages to the browser when a "new item" happens.
Send HTTP requests from a browser.
https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch
https://api.jquery.com/jquery.ajax/
SignalR
https://docs.microsoft.com/en-us/aspnet/core/signalr/introduction?view=aspnetcore-2.2