A few times I've discovered code that uses tokio
File
I/O in a way that is unreliable. This is because there's a bit of a footgun in the implementation of how File
writes occur in the tokio runtime.
If you use tokio::fs::File
in your code, you should probably know about this hazard, to avoid some unpleasant surprises.