projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Promise<T>::makeEmpty() and Future<T>::makeEmpty()
[folly.git]
/
folly
/
futures
/
Promise.h
diff --git
a/folly/futures/Promise.h
b/folly/futures/Promise.h
index 75119129df82a69a65f2e8dc6298c0d16f0351e9..4a3f51c561e87b68f76f3cd22beb8cce7a5f6590 100644
(file)
--- a/
folly/futures/Promise.h
+++ b/
folly/futures/Promise.h
@@
-34,6
+34,8
@@
class CoreCallbackState;
template <class T>
class Promise {
public:
+ static Promise<T> makeEmpty() noexcept; // equivalent to moved-from
+
Promise();
~Promise();