Skip to content
JavaScript·Advanced·Conceptual·1 min read

What is the purpose of FinalizationRegistry?

Short interview answer

It can schedule best-effort cleanup notifications after collection, but timing and execution are not guaranteed. Core resource correctness must use explicit disposal instead.

Key takeaway

Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.

← Back to Memory management

Related questions