Add keepAlive() mechanism
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
Showing
Please register or sign in to comment