Skip to content

Instantly share code, notes, and snippets.

View habib-sadullaev's full-sized avatar

habib sadullaev habib-sadullaev

  • Uzbekistan
View GitHub Profile
@StephenCleary
StephenCleary / UnitTests.cs
Last active February 4, 2024 12:29
How StartNew responds to CancellationToken
using System;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.VisualStudio.TestTools.UnitTesting;
[TestClass]
public class StartNewCancellationTokenUnitTests
{
[TestMethod]
public void CancellationTokenPassedToStartNew_CancelsTaskWithTaskCanceledException()
@Lanayx
Lanayx / routing.fs
Created November 30, 2023 04:14
Strongly typed routing
open Printf
open System
open System.Threading
open System.Text.RegularExpressions
type Response =
{
Code: int
Body: string
}