async def METHOD_NAME() -> None:
    while True:
        await asyncio.sleep(0.2)
        with Process.audit("maintain_activities"):
            with self.__pending_activities_lock:
                for activity in self.__pending_append_activities:
                    activities.append_item(activity)
                for activity in reversed(self.__pending_finished_activities):
                    activities.remove_item(activities.items.index(activity))
                self.__pending_append_activities.clear()
                self.__pending_finished_activities.clear()