replace asyncPlatformFlush with flush

replace `asyncPlatformFlush()` with newer version `flush()`
Merge pull request #25 from che-effe/patch-1

replace asyncPlatformFlush with flush