Dreams of doing a 'git push' from every continent on Earth
-
Authority Partners
- Saquarema
-
14:50
(UTC -03:00) - in/thiagosgarcia
- https://profile.codersrank.io/user/thiagosgarcia
Pinned Loading
-
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() 1public class ServerPool
2{3private readonly SynchronizedCollection<Uri> endpoints = new SynchronizedCollection<Uri>();
45private int _currentIndex;
-
-
-
C# string comparer with wildcard pos...
C# string comparer with wildcard position 1class NameComparer : IComparer<string>
2{3readonly List<string> _desiredOrder = new() { "Controller_First", "Controller2", "Controller3", "*", "Controller_Last"};
4private int WildcardPosition => _desiredOrder.FindIndex(x=> x == "*");
5public int Compare(string x, string y)
-
Channels for Streaming. Stream resul...
Channels for Streaming. Stream results to reduce memory pressure and allow consumers to start receiving output earlier 1public async IAsyncEnumerable<T> ProcessItems(IAsyncEnumerable<T> sourceItems)
2{3// Stream results to reduce memory pressure and allow consumers to start receiving output earlier.4Channel<T> resultsChannel = Channel.CreateUnbounded<TResult>(new UnboundedChannelOptions
5{
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.



