To cancel during page scanning, an asynchronous call to `sane_cancel` should be added. However, `sane_read` still needs to be called until EOF. This was discussed in the sane-airscan discussion: https://github.com/alexpevzner/sane-airscan/discussions/333#discussioncomment-8832734
To cancel during page scanning, an asynchronous call to
sane_cancelshould be added. However,sane_readstill needs to be called until EOF.This was discussed in the sane-airscan discussion:
alexpevzner/sane-airscan#333 (comment)