Skip to content

Instantly share code, notes, and snippets.

View varun-r-boop's full-sized avatar
💭
I may be slow to respond.

Varun Ramesh varun-r-boop

💭
I may be slow to respond.
  • Batman
  • Coimbatore
  • 05:45 (UTC +05:30)
View GitHub Profile
@varun-r-boop
varun-r-boop / Task.cs
Created December 30, 2022 08:17
Task in C#:
using System;
using System.Threading.Tasks;
namespace TaskExample
{
public class Program
{
public static void Main(string[] args)
{
// Create and start tasks
@varun-r-boop
varun-r-boop / async-await.cs
Created December 30, 2022 08:14
Asynchoronus Programming:
using System.Threading.Tasks;
namespace AsyncExample
{
public class Program
{
public static async Task Main(string[] args)
{
// Call an async method and wait for it to complete
int result = await AsyncMethod();