Implement FlushAsync which doesn't create tasks all the time.