Indefinite observers and inline observers
Summary:
provides new APIs observe(ObserverPtr<T>) and observe(Observer<T>*) that
are not associated with a subscription. The latter method avoids allocations at the cost of disowning responsiblity for object lifetimes.
It could be used for batch-allocating filter chains, for instance. I hacked up some recursive templates that would make that easy to do, but
haven't included them. I'd rather see the first use case and then decide whether to let users set them up themselves or to provide an
abstraction that makes it easier.
Test Plan: unit
Reviewed By: davejwatson@fb.com
Subscribers: folly-diffs@, fugalh, njormrod
FB internal diff:
D1595200
Tasks:
5002278
Signature: t1:
1595200:
1416266578:
95c0532af42443fd83e2f94d30790c3c0831ce65