protected boolean awaitUnpause() throws InterruptedException {
        synchronized (this) {
            while (targetState == TargetState.PAUSED) {
                if (isStopping())
                    return false;
                this.wait();
            }
            return true;
        }
    }
Await task resumption.

@return true if the task's target state is not paused, false if the task is shutdown before resumption
@throws InterruptedException
connect/runtime/src/main/java/org/apache/kafka/connect/runtime/WorkerTask.java