def METHOD_NAME(self):
    with type(self)._POOL_LOCK:
        for fut, ev in (v for v in self.alive_tasks.values() if not v[0].done()):
            if ev:
                ev.set()
            fut.cancel()