API reference › @evolu/common › LeakDetector
Development-time detection of leaked handles via garbage collection.
Functions
| Function | Description |
|---|---|
| createLeakDetector | Creates LeakDetector backed by FinalizationRegistry. |
| testCreateLeakDetector | Creates TestLeakDetector. |
Interfaces
| Interface | 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. |
| TestLeakDetector | Test LeakDetector with deterministic collection. |
| TestLeakDetectorDep | Dependency wrapper for TestLeakDetector. |
Variables
| Variable | Description |
|---|---|
| noopLeakDetector | No-op LeakDetector for production. |