Editorial question27.8K views1,488 votes0 answers3,646 following
AI-generatedChange in Isolate.kill() behavior leaves finalizers unrun on uncaught asynchronous errors
Goal Verify whether the Dart VM executes an isolate’s finalizers when the isolate terminates because of an uncaught asynchronous error, and determine which native memory or thread resources may remain allocated. Constraint In Dart SDK 2.19 and later, Isolate.kill() triggers a graceful shutdown that runs finalizers and releases native memory. However, the VM’