Click here to Skip to main content
15,886,362 members
Everything / Asynchrony

Asynchrony

asynchrony

Great Reads

by honey the codewitch
Explore the inner workings of a highly capable IoT display driver for the ESP32
by honey the codewitch
Using await in scenarios where you want to await custom items with or without using Task.Run()
by Kirill__
Reminder: simple Windows Store App. In this App I try to use some specific features for Windows 8 app. As result - i got good experience and now i want to show what was done.
by danah gaz
A lightweight, high performance, easy to use asynchronous stream copy method using IOCP with progress, throughput tracking, and no explicit thread creation.

Latest Articles

by honey the codewitch
Explore the inner workings of a highly capable IoT display driver for the ESP32
by honey the codewitch
Using await in scenarios where you want to await custom items with or without using Task.Run()
by Tony Zackin
A very simple yet customizable pop-up message box which auto-closes after a specified number of milliseconds.
by Aldonis55
A simple WinForms example that shows one way to implement asynchronous operations in your applications

All Articles

Sort by Score

Asynchrony 

4 Mar 2015 by Richard Deeming
If you can change the ProcessListings method to do its work asynchronously, and return a Task, then this would be simple:public async Task ProcessAsync(bool isForced){ var prevStatus = Status; Status = SchedulerStatus.Processing; await ProcessListingsAsync(); Status =...
6 May 2021 by honey the codewitch
Explore the inner workings of a highly capable IoT display driver for the ESP32
3 Jan 2023 by Pete O'Hanlon
You shouldn't be running your SQL commands in the dispatcher. What Dispatcher.Invoke does is marshall the operation back onto the thread that the Dispatcher is running on, so what you are doing here is actually forcing the "long running"...
18 Jan 2015 by Member 11092009
How to asynchronous File Upload with blueimp's jQuery file upload pluginhttps://github.com/blueimp/jQuery-File-Upload/wiki/Client-side-Image-Resizing[^]
3 Mar 2015 by Brady Kelly
Inside my SchedulerService WCF service, I have a method as follows:public void Process(bool isForced){ var prevStatus = Status; Status = SchedulerStatus.Processing; ProcessListings(); Status = prevStatus;}Now I have a view model that polls the Status property, and all...
4 Mar 2015 by Brady Kelly
I have accepted Richard's solution, because it answered the question well, but I'm just posting mine here to show exactly how I achieved what was needed.Making ProcessListings was as simple as:private static Task ProcessListings(){ return Task.Run(() => Thread.Sleep(5000)); ...
24 Sep 2015 by Sergey Alexandrovich Kryukov
This is simple, but it would take long time to explain all the detail, so here is an example for you:Suppose you have some code likevoid MyFunction(A a, B b, C c) {/* ... */}//...A aValue = //...B bValue = //...C cValue = //...MyFunction(aValue, bValue, cValue);How to delegate...
24 Jul 2020 by honey the codewitch
Using await in scenarios where you want to await custom items with or without using Task.Run()
1 Apr 2014 by Kirill__
Reminder: simple Windows Store App. In this App I try to use some specific features for Windows 8 app. As result - i got good experience and now i want to show what was done.
28 Dec 2015 by danah gaz
A lightweight, high performance, easy to use asynchronous stream copy method using IOCP with progress, throughput tracking, and no explicit thread creation.
9 Feb 2018 by Tony Zackin
A very simple yet customizable pop-up message box which auto-closes after a specified number of milliseconds.
9 Jan 2016 by Aldonis55
A simple WinForms example that shows one way to implement asynchronous operations in your applications
11 Jan 2023 by Reza jafery
I created an algorithm for this specific case. For clearer understanding, I illustrated it as follows: Click to see I only inserted the necessary codes.
24 Sep 2015 by Manidas Payyoli
hai all please help me am trying to connect my app with openfire server here.[ignore my button click event]im having trouble in:1. Thread.Sleep(2000); //the name thread does not exist in the current context 2.this.Dispatcher.BeginInvoke(() =>//error! windows.ui.core.core...
11 Jan 2023 by Reza jafery
Hi, I used the Dispatcher property to modify the UI, and I added System.Threading.Thread.Sleep(3000) in Dispatcher.Invoke block to ensure that it would not freeze, but the UI stays frozen for 3 seconds. Let's say the Dispatcher.Invoke block takes...