single_autoclosable/dart/closable_future library

Extensions

FutureClose on Future<T>
An extension on the Future class that allows you to manage its lifecycle with a HasCloser's Closer. This extension simplifies the process of adding a Future to a Closer while hiding the SingleAutoClosable implementation details.