SftpUpload.cancel

void cancel()

Cancels the transfer. Outstanding request interest is cancelled; completion of the already-written prefix stays uncertain until the caller closes the handle.