Also adds an additional function that allows to cancel a read from a different thread, but doesn't expose this in the API
Known Limitations
Doesn't address the more fundamental question, if an error inside accumulate_scans should actually stop the worker thread and how the user is supposed to restart it.
Scope of changes
Forward errors from accumulate_scans to get_scan.
Also adds an additional function that allows to cancel a read from a different thread, but doesn't expose this in the API
Known Limitations
Doesn't address the more fundamental question, if an error inside accumulate_scans should actually stop the worker thread and how the user is supposed to restart it.