fn reads(
file: &File,
shell: &Shell,
then: impl FnOnce(String, Vec<u8>) + 'static,
)Expand description
Read one file and hand its bytes to whatever asked for them.
FileReader is the only way to the bytes on the main thread, and it
answers on an event rather than returning, so the hand-off happens in the
callback.