fix typo in SharedPromise comment
authorJames Sedgwick <jsedgwick@fb.com>
Tue, 9 Jun 2015 20:27:00 +0000 (13:27 -0700)
committerwoo <woo@fb.com>
Tue, 9 Jun 2015 23:12:17 +0000 (16:12 -0700)
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

index c681a3f037fc6f504d9652891b3758d8631ed073..0c8fcd9a747d86e59f132d1c9f2b72824b30b1f5 100644 (file)
@@ -45,8 +45,10 @@ public:
   SharedPromise(SharedPromise<T>&&) noexcept;
   SharedPromise& operator=(SharedPromise<T>&&) 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<T> getFuture();
 
   /** Return the number of Futures associated with this SharedPromise */