• Shai Szulanski's avatar
    Drop unit in folly::coro::toTask · 2044c0c6
    Shai Szulanski authored
    Summary:
    To preserve void type in roundtrip
    Doing this generically is pretty gross (you need to check if awaiter_type<decltype(co_viaIfAsync({}, SemiAwaitable))> has a member await_resume_try), while the cost of adding explicit overloads is low as there are only two types we care about, so I chose to do it that way.
    
    Reviewed By: yfeldblum
    
    Differential Revision: D23407270
    
    fbshipit-source-id: cc952e2d8fa4297dbe363e22e99192fdf858134f
    2044c0c6
FutureUtilTest.cpp 3.28 KB