def METHOD_NAME(self, w):
    scaler = w.autoscaler = self.instantiate(
        w.autoscaler_cls,
        w.pool, w.max_concurrency, w.min_concurrency,
        worker=w, mutex=DummyLock() if w.use_eventloop else None,
    )
    return scaler if not w.use_eventloop else None