Skip to content
View thiagosgarcia's full-sized avatar

Block or report thiagosgarcia

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. Markdown is supported. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. Thread-safe round-robin method for h... Thread-safe round-robin method for high performance applications without the need of waiting for a counter increment when selecting Next()
    1
        public class ServerPool
    2
        {
    3
            private readonly SynchronizedCollection<Uri> endpoints = new SynchronizedCollection<Uri>();
    4
    
                  
    5
            private int _currentIndex;
  2. PiCast PiCast Public

    Just a bunch of web-controlled random widgets to put on a 3.5" RaspberryPi-powered LCD screen

    C# 1

  3. hwo2014 hwo2014 Public

    HWO2014 Working Minds team source code

    JavaScript

  4. CancellationTokenDemo CancellationTokenDemo Public

    C# 1

  5. C# string comparer with wildcard pos... C# string comparer with wildcard position
    1
    class NameComparer : IComparer<string> 
    2
    { 
    3
        readonly List<string> _desiredOrder = new() { "Controller_First", "Controller2", "Controller3", "*", "Controller_Last"}; 
    4
        private int WildcardPosition => _desiredOrder.FindIndex(x=> x == "*"); 
    5
        public int Compare(string x, string y) 
  6. Channels for Streaming. Stream resul... Channels for Streaming. Stream results to reduce memory pressure and allow consumers to start receiving output earlier
    1
    public async IAsyncEnumerable<T> ProcessItems(IAsyncEnumerable<T> sourceItems)
    2
    {
    3
      // Stream results to reduce memory pressure and allow consumers to start receiving output earlier.
    4
      Channel<T> resultsChannel = Channel.CreateUnbounded<TResult>(new UnboundedChannelOptions
    5
      {