Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Use KeepAlive instead of Executor* (#109)
Summary: Pull Request resolved: #109 X-link: facebookincubator/velox#11732 folly::Executor::KeepAlive is the recommended way of holding references to executors as they ensure they are actually kept alive (block the executor destructor). A shared_ptr or a naked pointer won't ensure the executor is still available. Other functions from folly (like global pools) only provide KeepAlive APIs. Reviewed By: xiaoxmeng, sdruzkin Differential Revision: D66724539 fbshipit-source-id: 231527346bdd09cac45293379c7454ac1595f31d
- Loading branch information