• Pranav Thulasiram Bhat's avatar
    Awaiting futures · a7d768ee
    Pranav Thulasiram Bhat authored
    Summary:
    This diff adds `future_wait`, an annotated helper to run blocking `get` operations on futures.
    
    `future_wait` will help annotate functions (and their caller stack) that block on futures.
    
    For semifutures, deferred work is performed on fiber-main context, so there is no concern of bleeding fibers.
    
    Reviewed By: yfeldblum
    
    Differential Revision: D21965552
    
    fbshipit-source-id: 79941c3b73c67d63d83dcdc778c62a0fc9051de3
    a7d768ee
Future.h 1.2 KB