felangel / felangel/bloc

feat: investigate use of Finalizer to detect/auto-close unclosed bloc instances

Open
#3,172 1 comment 4 reactions 0 assignees View on GitHub
dependency enhancement candidate pkg:bloc
Dominant language
Dart
Stars
12.5k
Forks
3.4k
PR merge metrics
No merged PRs in 30d

Description

## Description

As a developer, it would be helpful to detect if a bloc was not properly closed when it becomes inaccessible to the program. This issue is to investigate the use of [Finalizer](https://master-api.flutter.dev/flutter/dart-core/Finalizer-class.html) within bloc to either detect or prevent blocs from not being properly closed when they are no longer accessible.

## Additional Context

The Finalizer API is available in Dart 2.17 so this would likely not land anytime soon and this is more for exploratory purposes.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.