projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
(wangle) Future/Promise detachment
[folly.git]
/
folly
/
wangle
/
Future.h
diff --git
a/folly/wangle/Future.h
b/folly/wangle/Future.h
index fcec435380a8ad49f010411e6ae12fe95eff50a6..e468eebe6cb5c5edea3df2a619199e33b137184e 100644
(file)
--- a/
folly/wangle/Future.h
+++ b/
folly/wangle/Future.h
@@
-189,6
+189,8
@@
class Future {
explicit
Future(statePtr obj) : state_(obj) {}
+ void detach();
+
void throwIfInvalid() const;
friend class Promise<T>;