This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Threading; | |
using System.Collections.Concurrent; | |
using System.Runtime.CompilerServices; | |
using Microsoft.VisualStudio.Threading; | |
// Code adapted from https://www.youtube.com/watch?time_continue=20912&v=FMx3D5Q7upo&feature=emb_logo | |
// Need to figure out where does the deadlock happen with SingleThreadedSynchronizationContext =| |