MCPcopy Create free account
hub / github.com/FastLED/FastLED / _register_cleanup_handler

Function _register_cleanup_handler

ci/compiler/platformio_cache.py:353–358  ·  view source on GitHub ↗

Register atexit handler for lock cleanup (once per process).

()

Source from the content-addressed store, hash-verified

351
352
353def _register_cleanup_handler():
354 """Register atexit handler for lock cleanup (once per process)."""
355 global _cleanup_registered
356 if not _cleanup_registered:
357 atexit.register(lambda: cleanup_stale_platformio_locks(max_age_minutes=30))
358 _cleanup_registered = True
359
360
361# Register cleanup handler when module is imported

Callers 1

Calls 2

registerMethod · 0.45

Tested by

no test coverage detected