replace asyncPlatformFlush with flush

shorten `asyncPlatformFlush()` to the newer standard of `flush()`