Thanks to visit codestin.com Credit goes to angular-docs.tr
A global reactive effect, which can be manually destroyed.
interface EffectRef { destroy(): void;}
void
Shut down the effect, removing it from any upcoming scheduled executions.