Correct documentation of read, read_at, write and write_at functions to match new CompletionCondition concept. Fixes #2871.