API reference › @evolu/common › LeakDetector
Development-time detection of leaked handles via garbage collection.
Core
| Name | Description |
|---|---|
| Leak | Describes a tracked handle for LeakDetector.track. |
| LeakDetector | Detects handles that are garbage-collected while still considered held. |
| LeakDetectorDep | Dependency wrapper for LeakDetector. |
| noopLeakDetector | No-op LeakDetector for production. |
| createLeakDetector | Creates LeakDetector backed by FinalizationRegistry. |
Testing
| Name | Description |
|---|---|
| TestLeakDetector | Test LeakDetector with deterministic collection. |
| TestLeakDetectorDep | Dependency wrapper for TestLeakDetector. |
| testCreateLeakDetector | Creates TestLeakDetector. |