Skip to content

Instantly share code, notes, and snippets.

View OmidID's full-sized avatar
💭
Avalonia MVP

Omid Mafakher OmidID

💭
Avalonia MVP
View GitHub Profile
@OmidID
OmidID / JSONHelper.java
Last active August 31, 2017 13:48
JSONHelper to manage Json value from JSONObject more easy and relax
package com.omidid.utils;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
/**
* Created by OmidID on 8/22/2017.
*/
@OmidID
OmidID / ThreadPool.cs
Created March 12, 2018 21:00
C# ThreadPool
using System;
using System.Collections.Generic;
using System.Collections.Concurrent;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace OmidID.Utils
@OmidID
OmidID / TaskPool.cs
Last active March 7, 2024 18:15
C# Task Pool
using System.Collections.Concurrent;
/// <summary>
/// TaskPool class that help you to execute async task in pool
/// </summary>
/// <remarks>
/// https://gist.github.com/OmidID/da234a6cfbacebbd46defdb71c6cf95e
/// </remarks>
public class TaskPool(int threadsMaxCount)
{