• Kenton Varda's avatar
    Warn if AsyncOutputStream::write()'s result promise is unused. · b3cfd6be
    Kenton Varda authored
    It turns out that, quite often, the write() will have already completed before the method returns, hence dropping the returned promise won't cause any apparent problem -- until you try to write() a sufficiently large value that it doesn't complete on the first call. Then, you get mysterious bugs.
    
    Indeed, it turns out the HTTP library has such bugs, which are fixed in this change.
    b3cfd6be
async-io.h 23.7 KB