def _cancel_tasks()

in aidial_sdk/utils/_cancel_scope.py [0:0]


    def _cancel_tasks(self):
        if not self._cancelling:
            self._cancelling = True
            for t in self._tasks:
                if not t.done():
                    t.cancel()