public void join() {
        while (!this.destroyed) {
            ThreadHelper.onSpinWait();
        }
    }
Error callback, it will be called in lock.

@param id        the thread id
@param data      the data
@param errorCode the error code
jraft-core/src/main/java/com/alipay/sofa/jraft/util/ThreadId.java