/*
- * Copyright 2015 Facebook, Inc.
+ * Copyright 2016 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
SharedPromise(SharedPromise<T>&&) noexcept;
SharedPromise& operator=(SharedPromise<T>&&) noexcept;
+ /**
+ * Provide a way to split a Future<T>. Note that while the Futures from
+ * `getFuture()' depend on the completion of the parameter Future they do not
+ * inherit any other properties such as Executor's passed to `via' etc.
+ */
+ explicit SharedPromise(Future<T>);
+
/**
* Return a Future tied to the shared core state. Unlike Promise::getFuture,
* this can be called an unlimited number of times per SharedPromise.