def _call_on_remove_callbacks(self) -> None:
    'Call callbacks registered by async_on_remove.'
    if (self._on_remove is None):
        return
    while self._on_remove:
        self._on_remove.pop()()
Call callbacks registered by async_on_remove.
def _call_on_remove_callbacks(self) -> None:
    
    if (self._on_remove is None):
        return
    while self._on_remove:
        self._on_remove.pop()()