You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Dart 2.17, we can attach a Finalizer to objects to invoke a callback when they become unreachable. We can use this to automatically dispose databases and prepared statements if a user forgets to dispose them manually.
One issue is that the finalizer callback can't use the database itself, it would have to use a finalization token still providing all the information necessary to fully dispose the object.
The text was updated successfully, but these errors were encountered:
In Dart 2.17, we can attach a
Finalizer
to objects to invoke a callback when they become unreachable. We can use this to automatically dispose databases and prepared statements if a user forgets to dispose them manually.One issue is that the finalizer callback can't use the database itself, it would have to use a finalization token still providing all the information necessary to fully dispose the object.
The text was updated successfully, but these errors were encountered: