Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: This introduces the following aliases: - `HandlerCallbackPtr<T>` → `std::unique_ptr<HandlerCallback<T>>` - `HandlerCallbackBase::Ptr` → `std::unique_ptr<HandlerCallbackBase` - `HandlerCallback<T>::Ptr` (same as `HandlerCallbackPtr<T>`) This allows a no-effect codemod after which we can change the underlying type from `unique_ptr` to something similar to `folly::Executor::KeepAlive`. Such a change would effectively allow shared ownership rather than unique ownership and consequently let us invoke asynchronous functionality safely in `HandlerCallback::result` (required for `ServiceInterceptor::onResponse`). Reviewed By: iahs Differential Revision: D55932261 fbshipit-source-id: b58fe5cb839d8f20eca55fae5abcdda9dfabaa55
- Loading branch information