• Andrii Grynenko's avatar
    Add keepAlive() mechanism · 53367378
    Andrii Grynenko authored
    Summary:
    EventBase and VirtualEventBase already had a loopKeepAlive() mechanism, which enabled libraries to prevent EventBase/VirtualEventBase from being destroyed until all keep-alive tokens were released.
    
    This change adds generic keepAlive() support into folly::Executor. folly::Executors which don't support keep-alive mechanism yet, will just return a no-op KeepAlive token.
    
    Reviewed By: yfeldblum
    
    Differential Revision: D4516649
    
    fbshipit-source-id: 869779621c746cb14d985aa73bc4536859914c03
    53367378
EventBase.h 24.8 KB