From dbd0777d28fd6b0ef26d4e1c206ae5e3d4a2f67f Mon Sep 17 00:00:00 2001 From: James Sedgwick Date: Tue, 9 Jun 2015 13:27:00 -0700 Subject: [PATCH] fix typo in SharedPromise comment Summary: ^ Test Plan: OK Reviewed By: yfeldblum@fb.com Subscribers: folly-diffs@, jsedgwick, yfeldblum, chalfant FB internal diff: D2140212 Signature: t1:2140212:1433877717:86b7bf372091b455cdb25a377451e1ed4e21f50d --- folly/futures/SharedPromise.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/folly/futures/SharedPromise.h b/folly/futures/SharedPromise.h index c681a3f0..0c8fcd9a 100644 --- a/folly/futures/SharedPromise.h +++ b/folly/futures/SharedPromise.h @@ -45,8 +45,10 @@ public: SharedPromise(SharedPromise&&) noexcept; SharedPromise& operator=(SharedPromise&&) noexcept; - /** Return a Future tied to the shared core state. This can be called only - once, thereafter Future already retrieved exception will be raised. */ + /** + * Return a Future tied to the shared core state. Unlike Promise::getFuture, + * this can be called an unlimited number of times per SharedPromise. + */ Future getFuture(); /** Return the number of Futures associated with this SharedPromise */ -- 2.34.1