From 968945c5e981c50746ba2f71293310a4536f96e1 Mon Sep 17 00:00:00 2001 From: Lee Howes Date: Wed, 1 Nov 2017 15:46:19 -0700 Subject: [PATCH] Quick comment on DE to clarify use cases and lack of thread safety. Summary: (Note: this ignores all push blocking failures!) Reviewed By: yfeldblum Differential Revision: D6212919 fbshipit-source-id: b066d99e13e97cbab489132bcb91872ed4407f81 --- folly/futures/Future-pre.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/folly/futures/Future-pre.h b/folly/futures/Future-pre.h index 1fd0ebe7..26d9c7c6 100644 --- a/folly/futures/Future-pre.h +++ b/folly/futures/Future-pre.h @@ -155,6 +155,11 @@ struct Extract { /** * Defer work until executor is actively boosted. + * + * NOTE: that this executor is a private implementation detail belonging to the + * Folly Futures library and not intended to be used elsewhere. It is designed + * specifically for the use case of deferring work on a SemiFuture. It is NOT + * thread safe. Please do not use for any other purpose without great care. */ class DeferredExecutor final : public Executor { public: -- 2.34.1