docs: public final synchronized boolean isDone() {
          return (state == TransferState.Failed ||
                  state == TransferState.Completed ||
                  state == TransferState.Canceled);
      }