Results 1 to 6 of 6

Thread: Basic asynchronous operations

  1. #1

    Thread Starter
    Karen Payne MVP kareninstructor's Avatar
    Join Date
    Jun 2008
    Location
    Oregon
    Posts
    6,568

    Basic asynchronous operations

    Developers, novice and hobbyist can avoid performance bottlenecks and enhance the overall responsiveness of your application by using asynchronous programming. Asynchrony is essential for activities that are potentially blocking, such as when your application accesses the web or local.

    Access to a web or local resource sometimes is slow or delayed. If such an activity blocks within a synchronous process, the entire application must wait. In an asynchronous process, the application can continue with other work that does not depend on the web resource until the potentially blocking task finishes.

    There are many long time coders using BackgroundWorker class which works for desktop and web applications while working with the await operator Jump and various .NET classes which offer asynchronous methods and/or running synchronous operations from a Task Jump offers more flexibility. Intent is to provide simple to intermediate code samples to assist developers, novice and hobbyist a framework to work with asynchronous operations using the await operator in tangent with Task.

    See the following GitHub repository for several code samples done with Visual Studio 2017 and will work with Visual Studio 2019. For a breakdown of code, see Microsoft TechNet article.

    Important, for the project SqlServerSimpleAsync, open DataScripts.sql, inspect the path where the database will be created and ensure it's proper for your box. Next run the script in Visual Studio or from SSMS (SQL-Server Management Studio).

    Finally, the best place to start is with AsynchronousCancellationTokenSample project.

  2. #2
    Fanatic Member
    Join Date
    Feb 2014
    Location
    Norfolk UK (inbred)
    Posts
    909

    Re: Basic asynchronous operations

    Please provide the same for VB6 then I will be impressed!

  3. #3

    Thread Starter
    Karen Payne MVP kareninstructor's Avatar
    Join Date
    Jun 2008
    Location
    Oregon
    Posts
    6,568

    Re: Basic asynchronous operations

    Quote Originally Posted by yereverluvinuncleber View Post
    Please provide the same for VB6 then I will be impressed!
    Never, ever touched VB6 and never will.

    The code samples are not to impress but for learning.

  4. #4
    Fanatic Member
    Join Date
    Feb 2014
    Location
    Norfolk UK (inbred)
    Posts
    909

    Re: Basic asynchronous operations

    Quote Originally Posted by kareninstructor View Post
    Never, ever touched VB6 and never will.
    You don't know what you've missed.

  5. #5

    Thread Starter
    Karen Payne MVP kareninstructor's Avatar
    Join Date
    Jun 2008
    Location
    Oregon
    Posts
    6,568

    Re: Basic asynchronous operations

    Quote Originally Posted by yereverluvinuncleber View Post
    You don't know what you've missed.
    I code in ASP.NET Core/Entity Framework Core and WPF/Entity Framework Core applications, doubt that Visual Basic classic can even come close to matching what can be done with ASP.NET Core/Entity Framework Core. And doubt Visual Basic classic can do cross platform.

  6. #6
    Fanatic Member
    Join Date
    Feb 2014
    Location
    Norfolk UK (inbred)
    Posts
    909

    Re: Basic asynchronous operations

    Well, we do our best.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width