This file contains hidden or 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
namespace AsynchronousProgramming | |
{ | |
/// <summary> | |
/// This is an implementation of the Generic Only One Pattern and I modified it a bit | |
/// to correctly cancel the remaining tasks running. | |
/// | |
/// Reference: https://dotnettutorials.net/lesson/only-one-pattern-in-csharp/ | |
/// </summary> | |
public class Program | |
{ |