[#1317] Allow to use VoidPromise for flush(...), write(...) and sendFile(...)