Skip to content

Instantly share code, notes, and snippets.

View d3QUone's full-sized avatar
😎

Vladimir K d3QUone

😎
View GitHub Profile
@d3QUone
d3QUone / watchdog.py
Created November 11, 2022 21:21 — forked from thehesiod/watchdog.py
python sync watchdog
import asyncio
import faulthandler
import warnings
from pathlib import Path
import io
from typing import Optional
# This is how often we'll trigger our callback to measure blockage
_MIN_RESOLUTION = 0.1