• Lewis Baker's avatar
    Make sure coroutine final_suspend() methods are declared noexcept · 8a3d5b9c
    Lewis Baker authored
    Summary:
    The C++20 specification for coroutines included a late change that
    now requires the `co_await promise.final_suspend();` expression to
    not be potentially throwing (ie. it needs to be declared `noexcept`).
    
    This change updates all coroutine types in folly to make sure that
    `final_suspend()` methods and the methods on awaitables returned from
    these methods are all declared `noexcept` so that folly can be used
    with compilers that enforce this requirement.
    
    Reviewed By: yfeldblum
    
    Differential Revision: D22203834
    
    fbshipit-source-id: 4a5bbcbad644349d2ff0b08f6460fa13c3165aec
    8a3d5b9c
CoroBenchmarkNRVO.cpp 4.56 KB