About 691,000 results
Open links in new tab
  1. c# - How to add a delay for a 2 or 3 seconds - Stack Overflow

    Use a timer with an interval set to 2–3 seconds. You have three different options to choose from, depending on which type of application you're writing:

  2. Async and Await in C# - GeeksforGeeks

    Sep 27, 2025 · C# provides built-in support for asynchronous programming through the async and await keywords. They allow developers to write code that performs non-blocking operations, …

  3. await operator - asynchronously wait for a task to complete - C# ...

    Jul 1, 2024 · For asynchronous operations that don't produce a value, you can call the Task.Wait method. For information about how to select the language version, see C# language versioning.

  4. Asynchronous programming with async, await, Task in C#

    The async LongProcess() method gets executed in a separate thread and the main application thread continues execution of the next statement which calls ShortProcess() method and does …

  5. Async and Await in C# with Examples - Dot Net Tutorials

    In this article, I am going to discuss how to implement Asynchronous Programming using Async and Await in C# with Examples.

  6. C# Tutorial (C Sharp) - W3Schools

    Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, PHP, Python, Bootstrap, Java and XML.

  7. C# Guide - .NET managed language | Microsoft Learn

    The C# guide has everything you need to learn C# and get started writing .NET apps. Learn C# programming - for beginning developers, developers new to C#, and experienced C# / .NET …

  8. C# Delay - How to pause code execution in C# - C# Sage

    Nov 13, 2020 · Detail info, with examples of how to use Thread.Sleep (), Task.Delay () and System.Threading.Timer () to achieve various types of delay in C#.

  9. Understanding async / await in C# - Stack Overflow

    But I prefer to separate out the exceptional code (using Wait) from any logic, which I move to MainAsync. It's just that much less of a chance that you'll deadlock if/when you copy/paste this …

  10. How Async/Await Really Works in C# - .NET Blog

    Mar 16, 2023 · Instead, C# does what it typically does in cases like this: it employs a pattern of APIs. Code can await anything that exposes that appropriate pattern, the “awaiter” pattern …