• Lewis Baker's avatar
    Add folly::coro::AsyncScope::remaining() · 4c6cb736
    Lewis Baker authored
    Summary:
    Add a method for querying the number of remaining tasks
    that have been added to an AsyncScope but that have not
    yet completed.
    
    This can be useful for implementing some load-shedding
    strategies based on the current number of active tasks
    added to a scope.
    
    Reviewed By: andriigrynenko
    
    Differential Revision: D21461637
    
    fbshipit-source-id: 628c236e0c99fa952e63f84366186246e5286bc8
    4c6cb736
Barrier.h 3.23 KB