broccolijs / broccoli

Browser compilation library – an asset pipeline for applications that run in the browser

Home Page:https://broccoli.build

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Destructor Concept

stefanpenner opened this issue · comments

Broccoli is missing a way to teardown/destroy/release broccoli pipelines and plugins.

Some plugins may have resources that must be cleaned up when the pipeline that plugin belongs too is shutdown. Many existing solutions simply cleanup naturally due to GC, but there exist advanced concepts which cannot be modeled in such a way, and those same concepts should not be constrained to broccoli core itself, but should be possible to accomplish from a plugin.