Skip to content

Instantly share code, notes, and snippets.

@mrx23dot
mrx23dot / daemon_thread_pool.py
Created July 4, 2023 21:20 — forked from BinarSkugga/daemon_thread_pool.py
Daemon thread pool that uses daemon threads without the atexit handler
import os
import queue
import time
from concurrent.futures import Future
from queue import Empty
from threading import Event
from typing import Iterable
from kthread import KThread