http://git-wip-us.apache.org/repos/asf/mesos-site/blob/fa35a7fd/content/api/latest/c++/future_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/future_8hpp_source.html 
b/content/api/latest/c++/future_8hpp_source.html
index 51a281e..bdf1f89 100644
--- a/content/api/latest/c++/future_8hpp_source.html
+++ b/content/api/latest/c++/future_8hpp_source.html
@@ -229,1591 +229,1594 @@
 <div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160; 
 <span class="keyword">template</span> &lt;<span 
class="keyword">typename</span> F&gt;</div>
 <div class="line"><a name="l00176"></a><span class="lineno"><a class="line" 
href="classprocess_1_1Future.html#aeea5927a465c7b6e7f0f8b91f1e65461">  
176</a></span>&#160;  <span class="keyword">const</span> <a class="code" 
href="classprocess_1_1Future.html">Future&lt;T&gt;</a>&amp; <a class="code" 
href="classprocess_1_1Future.html#aeea5927a465c7b6e7f0f8b91f1e65461">onDiscard</a>(<a
 class="code" 
href="structprocess_1_1__Deferred.html">_Deferred&lt;F&gt;</a>&amp;&amp; 
deferred)<span class="keyword"> const</span></div>
 <div class="line"><a name="l00177"></a><span class="lineno">  
177</span>&#160;<span class="keyword">  </span>{</div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160; 
   <span class="keywordflow">return</span> <a class="code" 
href="classprocess_1_1Future.html#a1b80bf321358be44880d9c6bae5d9a2d">onDiscard</a>(deferred.operator
 std::function&lt;<span class="keywordtype">void</span>()&gt;());</div>
+<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160; 
   <span class="keywordflow">return</span> <a class="code" 
href="classprocess_1_1Future.html#a1b80bf321358be44880d9c6bae5d9a2d">onDiscard</a>(std::move(deferred).<span
 class="keyword">operator</span> std::function&lt;<span 
class="keywordtype">void</span>()&gt;());</div>
 <div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160; 
 }</div>
 <div class="line"><a name="l00180"></a><span class="lineno">  
180</span>&#160;</div>
 <div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160; 
 <span class="keyword">template</span> &lt;<span 
class="keyword">typename</span> F&gt;</div>
 <div class="line"><a name="l00182"></a><span class="lineno"><a class="line" 
href="classprocess_1_1Future.html#a4492bc5e02252a90087bcda3a9113f66">  
182</a></span>&#160;  <span class="keyword">const</span> <a class="code" 
href="classprocess_1_1Future.html">Future&lt;T&gt;</a>&amp; <a class="code" 
href="classprocess_1_1Future.html#a4492bc5e02252a90087bcda3a9113f66">onReady</a>(<a
 class="code" 
href="structprocess_1_1__Deferred.html">_Deferred&lt;F&gt;</a>&amp;&amp; 
deferred)<span class="keyword"> const</span></div>
 <div class="line"><a name="l00183"></a><span class="lineno">  
183</span>&#160;<span class="keyword">  </span>{</div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160; 
   <span class="keywordflow">return</span> <a class="code" 
href="classprocess_1_1Future.html#a0af9d6f01e26acab3c2882a90fc09149">onReady</a>(deferred.operator
 std::function&lt;<span class="keywordtype">void</span>(<span 
class="keyword">const</span> T&amp;)&gt;());</div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160; 
 }</div>
-<div class="line"><a name="l00186"></a><span class="lineno">  
186</span>&#160;</div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160; 
 <span class="keyword">template</span> &lt;<span 
class="keyword">typename</span> F&gt;</div>
-<div class="line"><a name="l00188"></a><span class="lineno"><a class="line" 
href="classprocess_1_1Future.html#a8af6d072946de82f639c488872ab4db8">  
188</a></span>&#160;  <span class="keyword">const</span> <a class="code" 
href="classprocess_1_1Future.html">Future&lt;T&gt;</a>&amp; <a class="code" 
href="classprocess_1_1Future.html#a8af6d072946de82f639c488872ab4db8">onFailed</a>(<a
 class="code" 
href="structprocess_1_1__Deferred.html">_Deferred&lt;F&gt;</a>&amp;&amp; 
deferred)<span class="keyword"> const</span></div>
-<div class="line"><a name="l00189"></a><span class="lineno">  
189</span>&#160;<span class="keyword">  </span>{</div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160; 
   <span class="keywordflow">return</span> <a class="code" 
href="classprocess_1_1Future.html#a3ff2c35ef526a030a7ea6d0c4ca79945">onFailed</a>(</div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160; 
       deferred.operator std::function&lt;<span 
class="keywordtype">void</span>(<span class="keyword">const</span> 
std::string&amp;)&gt;());</div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160; 
 }</div>
-<div class="line"><a name="l00193"></a><span class="lineno">  
193</span>&#160;</div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160; 
 <span class="keyword">template</span> &lt;<span 
class="keyword">typename</span> F&gt;</div>
-<div class="line"><a name="l00195"></a><span class="lineno"><a class="line" 
href="classprocess_1_1Future.html#a9ed881404620ba5d7a145b2f9c2be008">  
195</a></span>&#160;  <span class="keyword">const</span> <a class="code" 
href="classprocess_1_1Future.html">Future&lt;T&gt;</a>&amp; <a class="code" 
href="classprocess_1_1Future.html#a9ed881404620ba5d7a145b2f9c2be008">onDiscarded</a>(<a
 class="code" 
href="structprocess_1_1__Deferred.html">_Deferred&lt;F&gt;</a>&amp;&amp; 
deferred)<span class="keyword"> const</span></div>
-<div class="line"><a name="l00196"></a><span class="lineno">  
196</span>&#160;<span class="keyword">  </span>{</div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160; 
   <span class="keywordflow">return</span> <a class="code" 
href="classprocess_1_1Future.html#a066172ff3324966119049bb9feac95ac">onDiscarded</a>(deferred.operator
 std::function&lt;<span class="keywordtype">void</span>()&gt;());</div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160; 
 }</div>
-<div class="line"><a name="l00199"></a><span class="lineno">  
199</span>&#160;</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160; 
 <span class="keyword">template</span> &lt;<span 
class="keyword">typename</span> F&gt;</div>
-<div class="line"><a name="l00201"></a><span class="lineno"><a class="line" 
href="classprocess_1_1Future.html#ab753c0730005edaef998bf8982f67e2a">  
201</a></span>&#160;  <span class="keyword">const</span> <a class="code" 
href="classprocess_1_1Future.html">Future&lt;T&gt;</a>&amp; <a class="code" 
href="classprocess_1_1Future.html#ab753c0730005edaef998bf8982f67e2a">onAny</a>(<a
 class="code" 
href="structprocess_1_1__Deferred.html">_Deferred&lt;F&gt;</a>&amp;&amp; 
deferred)<span class="keyword"> const</span></div>
-<div class="line"><a name="l00202"></a><span class="lineno">  
202</span>&#160;<span class="keyword">  </span>{</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160; 
   <span class="keywordflow">return</span> <a class="code" 
href="classprocess_1_1Future.html#a71bde220aed3c725cef2040f63adf42a">onAny</a>(deferred.operator
 std::function&lt;<span class="keywordtype">void</span>(<span 
class="keyword">const</span> <a class="code" 
href="classprocess_1_1Future.html">Future&lt;T&gt;</a>&amp;)&gt;());</div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160; 
 }</div>
-<div class="line"><a name="l00205"></a><span class="lineno">  
205</span>&#160;</div>
-<div class="line"><a name="l00206"></a><span class="lineno">  
206</span>&#160;<span class="keyword">private</span>:</div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160; 
 <span class="comment">// We use the &#39;Prefer&#39; and &#39;LessPrefer&#39; 
structs as a way to prefer</span></div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160; 
 <span class="comment">// one function over the other when doing SFINAE for the 
&#39;onReady&#39;,</span></div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160; 
 <span class="comment">// &#39;onFailed&#39;, &#39;onAny&#39;, and 
&#39;then&#39; functions. In each of these cases</span></div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160; 
 <span class="comment">// we prefer calling the version of the functor that 
takes in an</span></div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160; 
 <span class="comment">// argument (i.e., &#39;const T&amp;&#39; for 
&#39;onReady&#39; and &#39;then&#39; and &#39;const</span></div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160; 
 <span class="comment">// std::string&amp;&#39; for &#39;onFailed&#39;), but we 
allow functors that don&#39;t</span></div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160; 
 <span class="comment">// care about the argument. We don&#39;t need to do this 
for</span></div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160; 
 <span class="comment">// &#39;onDiscarded&#39; because it doesn&#39;t take an 
argument.</span></div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160; 
 <span class="keyword">struct </span>LessPrefer {};</div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160; 
 <span class="keyword">struct </span>Prefer : LessPrefer {};</div>
-<div class="line"><a name="l00217"></a><span class="lineno">  
217</span>&#160;</div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160; 
 <a class="code" 
href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">template
 &lt;typename F, typename = typename result_of&lt;F(const 
T&amp;)&gt;::type</a>&gt;</div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160; 
 <span class="keyword">const</span> Future&lt;T&gt;&amp; <a class="code" 
href="classprocess_1_1Future.html#a0af9d6f01e26acab3c2882a90fc09149">onReady</a>(F&amp;&amp;
 <a class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>, 
Prefer)<span class="keyword"> const</span></div>
-<div class="line"><a name="l00220"></a><span class="lineno">  
220</span>&#160;<span class="keyword">  </span>{</div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160; 
   <span class="keywordflow">return</span> <a class="code" 
href="classprocess_1_1Future.html#a0af9d6f01e26acab3c2882a90fc09149">onReady</a>(std::function&lt;<span
 class="keywordtype">void</span>(<span class="keyword">const</span> 
T&amp;)&gt;(</div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160; 
       [=](<span class="keyword">const</span> T&amp; t) <span 
class="keyword">mutable</span> {</div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160; 
         <a class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>(t);</div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160; 
       }));</div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160; 
 }</div>
-<div class="line"><a name="l00226"></a><span class="lineno">  
226</span>&#160;</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160; 
 <span class="comment">// This is the less preferred `onReady`, we prefer the 
`onReady` method which</span></div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160; 
 <span class="comment">// has `f` taking a `const T&amp;` parameter. 
Unfortunately, to complicate</span></div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160; 
 <span class="comment">// matters, if `F` is the result of a `std::bind` 
expression we need to SFINAE</span></div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160; 
 <span class="comment">// out this version of `onReady` and force the use of 
the preferred `onReady`</span></div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160; 
 <span class="comment">// (which works because `std::bind` will just ignore the 
`const T&amp;` argument).</span></div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160; 
 <span class="comment">// This is necessary because Visual Studio 2015 
doesn&#39;t support using the</span></div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160; 
 <span class="comment">// `std::bind` call operator with `result_of` as 
it&#39;s technically not a</span></div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160; 
 <span class="comment">// requirement by the C++ standard.</span></div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160; 
 <span class="keyword">template</span> &lt;</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160; 
     <span class="keyword">typename</span> F,</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160; 
     <span class="keyword">typename</span> = <span 
class="keyword">typename</span> result_of&lt;<span 
class="keyword">typename</span> std::enable_if&lt;</div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160; 
         !<a class="code" 
href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">std::is_bind_expression&lt;typename
 std::decay&lt;F&gt;::type</a>&gt;::value,</div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160; 
         F&gt;<a class="code" 
href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">::type</a>()&gt;<a
 class="code" 
href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">::type</a>&gt;</div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160; 
 <span class="keyword">const</span> Future&lt;T&gt;&amp; <a class="code" 
href="classprocess_1_1Future.html#a0af9d6f01e26acab3c2882a90fc09149">onReady</a>(F&amp;&amp;
 <a class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>, 
LessPrefer)<span class="keyword"> const</span></div>
-<div class="line"><a name="l00241"></a><span class="lineno">  
241</span>&#160;<span class="keyword">  </span>{</div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160; 
   <span class="keywordflow">return</span> <a class="code" 
href="classprocess_1_1Future.html#a0af9d6f01e26acab3c2882a90fc09149">onReady</a>(std::function&lt;<span
 class="keywordtype">void</span>(<span class="keyword">const</span> 
T&amp;)&gt;(</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160; 
       [=](<span class="keyword">const</span> T&amp;) <span 
class="keyword">mutable</span> {</div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160; 
         <a class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>();</div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160; 
       }));</div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160; 
 }</div>
-<div class="line"><a name="l00247"></a><span class="lineno">  
247</span>&#160;</div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160; 
 <a class="code" 
href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">template
 &lt;typename F, typename = typename result_of&lt;F(const 
std::string&amp;)&gt;::type</a>&gt; <span class="comment">// 
NOLINT(whitespace/line_length)</span></div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160; 
 <span class="keyword">const</span> Future&lt;T&gt;&amp; <a class="code" 
href="classprocess_1_1Future.html#a3ff2c35ef526a030a7ea6d0c4ca79945">onFailed</a>(F&amp;&amp;
 <a class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>, 
Prefer)<span class="keyword"> const</span></div>
-<div class="line"><a name="l00250"></a><span class="lineno">  
250</span>&#160;<span class="keyword">  </span>{</div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160; 
   <span class="keywordflow">return</span> <a class="code" 
href="classprocess_1_1Future.html#a3ff2c35ef526a030a7ea6d0c4ca79945">onFailed</a>(std::function&lt;<span
 class="keywordtype">void</span>(<span class="keyword">const</span> 
std::string&amp;)&gt;(</div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160; 
       [=](<span class="keyword">const</span> std::string&amp; message) <span 
class="keyword">mutable</span> {</div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160; 
         <a class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>(message);</div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160; 
       }));</div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160; 
 }</div>
-<div class="line"><a name="l00256"></a><span class="lineno">  
256</span>&#160;</div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160; 
 <span class="comment">// Refer to the less preferred version of `onReady` for 
why these SFINAE</span></div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160; 
 <span class="comment">// conditions are necessary.</span></div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160; 
 <span class="keyword">template</span> &lt;</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160; 
     <span class="keyword">typename</span> F,</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160; 
     <span class="keyword">typename</span> = <span 
class="keyword">typename</span> result_of&lt;<span 
class="keyword">typename</span> std::enable_if&lt;</div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160; 
         !<a class="code" 
href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">std::is_bind_expression&lt;typename
 std::decay&lt;F&gt;::type</a>&gt;::value,</div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160; 
         F&gt;<a class="code" 
href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">::type</a>()&gt;<a
 class="code" 
href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">::type</a>&gt;</div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160; 
 <span class="keyword">const</span> Future&lt;T&gt;&amp; <a class="code" 
href="classprocess_1_1Future.html#a3ff2c35ef526a030a7ea6d0c4ca79945">onFailed</a>(F&amp;&amp;
 <a class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>, 
LessPrefer)<span class="keyword"> const</span></div>
-<div class="line"><a name="l00265"></a><span class="lineno">  
265</span>&#160;<span class="keyword">  </span>{</div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160; 
   <span class="keywordflow">return</span> <a class="code" 
href="classprocess_1_1Future.html#a3ff2c35ef526a030a7ea6d0c4ca79945">onFailed</a>(std::function&lt;<span
 class="keywordtype">void</span>(<span class="keyword">const</span> 
std::string&amp;)&gt;(</div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160; 
       [=](<span class="keyword">const</span> std::string&amp;) <span 
class="keyword">mutable</span> {</div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160; 
         <a class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>();</div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160; 
       }));</div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160; 
 }</div>
-<div class="line"><a name="l00271"></a><span class="lineno">  
271</span>&#160;</div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160; 
 <span class="keyword">template</span> &lt;<span 
class="keyword">typename</span> F, <span class="keyword">typename</span> = 
<span class="keyword">typename</span> result_of&lt;F(const 
Future&lt;T&gt;&amp;)&gt;::type&gt; <span class="comment">// 
NOLINT(whitespace/line_length)</span></div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160; 
 <span class="keyword">const</span> Future&lt;T&gt;&amp; <a class="code" 
href="classprocess_1_1Future.html#a71bde220aed3c725cef2040f63adf42a">onAny</a>(F&amp;&amp;
 <a class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>, 
Prefer)<span class="keyword"> const</span></div>
-<div class="line"><a name="l00274"></a><span class="lineno">  
274</span>&#160;<span class="keyword">  </span>{</div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160; 
   <span class="keywordflow">return</span> <a class="code" 
href="classprocess_1_1Future.html#a71bde220aed3c725cef2040f63adf42a">onAny</a>(std::function&lt;<span
 class="keywordtype">void</span>(<span class="keyword">const</span> 
Future&lt;T&gt;&amp;)&gt;(</div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160; 
       [=](<span class="keyword">const</span> Future&lt;T&gt;&amp; future) 
<span class="keyword">mutable</span> {</div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160; 
         <a class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>(future);</div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160; 
       }));</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160; 
 }</div>
-<div class="line"><a name="l00280"></a><span class="lineno">  
280</span>&#160;</div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160; 
 <span class="comment">// Refer to the less preferred version of `onReady` for 
why these SFINAE</span></div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160; 
 <span class="comment">// conditions are necessary.</span></div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160; 
 <span class="keyword">template</span> &lt;</div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160; 
     <span class="keyword">typename</span> F,</div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160; 
     <span class="keyword">typename</span> = <span 
class="keyword">typename</span> result_of&lt;<span 
class="keyword">typename</span> std::enable_if&lt;</div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160; 
         !<a class="code" 
href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">std::is_bind_expression&lt;typename
 std::decay&lt;F&gt;::type</a>&gt;::value,</div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160; 
         F&gt;<a class="code" 
href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">::type</a>()&gt;<a
 class="code" 
href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">::type</a>&gt;</div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160; 
 <span class="keyword">const</span> Future&lt;T&gt;&amp; <a class="code" 
href="classprocess_1_1Future.html#a71bde220aed3c725cef2040f63adf42a">onAny</a>(F&amp;&amp;
 <a class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>, 
LessPrefer)<span class="keyword"> const</span></div>
-<div class="line"><a name="l00289"></a><span class="lineno">  
289</span>&#160;<span class="keyword">  </span>{</div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160; 
   <span class="keywordflow">return</span> <a class="code" 
href="classprocess_1_1Future.html#a71bde220aed3c725cef2040f63adf42a">onAny</a>(std::function&lt;<span
 class="keywordtype">void</span>(<span class="keyword">const</span> 
Future&lt;T&gt;&amp;)&gt;(</div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160; 
       [=](<span class="keyword">const</span> Future&lt;T&gt;&amp;) <span 
class="keyword">mutable</span> {</div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160; 
         <a class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>();</div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160; 
       }));</div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160; 
 }</div>
-<div class="line"><a name="l00295"></a><span class="lineno">  
295</span>&#160;</div>
-<div class="line"><a name="l00296"></a><span class="lineno">  
296</span>&#160;<span class="keyword">public</span>:</div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160; 
 <span class="keyword">template</span> &lt;<span 
class="keyword">typename</span> F&gt;</div>
-<div class="line"><a name="l00298"></a><span class="lineno"><a class="line" 
href="classprocess_1_1Future.html#a907cb66509cf2e07bff8cf919507f745">  
298</a></span>&#160;  <span class="keyword">const</span> <a class="code" 
href="classprocess_1_1Future.html">Future&lt;T&gt;</a>&amp; <a class="code" 
href="classprocess_1_1Future.html#a907cb66509cf2e07bff8cf919507f745">onDiscard</a>(F&amp;&amp;
 <a class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>)<span 
class="keyword"> const</span></div>
-<div class="line"><a name="l00299"></a><span class="lineno">  
299</span>&#160;<span class="keyword">  </span>{</div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160; 
   <span class="keywordflow">return</span> <a class="code" 
href="classprocess_1_1Future.html#a1b80bf321358be44880d9c6bae5d9a2d">onDiscard</a>(std::function&lt;<span
 class="keywordtype">void</span>()&gt;(</div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160; 
       [=]() <span class="keyword">mutable</span> {</div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160; 
         <a class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>();</div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160; 
       }));</div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160; 
 }</div>
-<div class="line"><a name="l00305"></a><span class="lineno">  
305</span>&#160;</div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160; 
 <span class="keyword">template</span> &lt;<span 
class="keyword">typename</span> F&gt;</div>
-<div class="line"><a name="l00307"></a><span class="lineno"><a class="line" 
href="classprocess_1_1Future.html#ad002735b3459454f81f77bc9604903ba">  
307</a></span>&#160;  <span class="keyword">const</span> <a class="code" 
href="classprocess_1_1Future.html">Future&lt;T&gt;</a>&amp; <a class="code" 
href="classprocess_1_1Future.html#ad002735b3459454f81f77bc9604903ba">onReady</a>(F&amp;&amp;
 <a class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>)<span 
class="keyword"> const</span></div>
-<div class="line"><a name="l00308"></a><span class="lineno">  
308</span>&#160;<span class="keyword">  </span>{</div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160; 
   <span class="keywordflow">return</span> <a class="code" 
href="classprocess_1_1Future.html#a0af9d6f01e26acab3c2882a90fc09149">onReady</a>(std::forward&lt;F&gt;(<a
 class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>), 
Prefer());</div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160; 
 }</div>
-<div class="line"><a name="l00311"></a><span class="lineno">  
311</span>&#160;</div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160; 
 <span class="keyword">template</span> &lt;<span 
class="keyword">typename</span> F&gt;</div>
-<div class="line"><a name="l00313"></a><span class="lineno"><a class="line" 
href="classprocess_1_1Future.html#a8c5395e292096cc9e91047ab6958564a">  
313</a></span>&#160;  <span class="keyword">const</span> <a class="code" 
href="classprocess_1_1Future.html">Future&lt;T&gt;</a>&amp; <a class="code" 
href="classprocess_1_1Future.html#a8c5395e292096cc9e91047ab6958564a">onFailed</a>(F&amp;&amp;
 <a class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>)<span 
class="keyword"> const</span></div>
-<div class="line"><a name="l00314"></a><span class="lineno">  
314</span>&#160;<span class="keyword">  </span>{</div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160; 
   <span class="keywordflow">return</span> <a class="code" 
href="classprocess_1_1Future.html#a3ff2c35ef526a030a7ea6d0c4ca79945">onFailed</a>(std::forward&lt;F&gt;(<a
 class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>), 
Prefer());</div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160; 
 }</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  
317</span>&#160;</div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160; 
 <span class="keyword">template</span> &lt;<span 
class="keyword">typename</span> F&gt;</div>
-<div class="line"><a name="l00319"></a><span class="lineno"><a class="line" 
href="classprocess_1_1Future.html#a3630c865b86819b18907a8f60c948add">  
319</a></span>&#160;  <span class="keyword">const</span> <a class="code" 
href="classprocess_1_1Future.html">Future&lt;T&gt;</a>&amp; <a class="code" 
href="classprocess_1_1Future.html#a3630c865b86819b18907a8f60c948add">onDiscarded</a>(F&amp;&amp;
 <a class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>)<span 
class="keyword"> const</span></div>
-<div class="line"><a name="l00320"></a><span class="lineno">  
320</span>&#160;<span class="keyword">  </span>{</div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160; 
   <span class="keywordflow">return</span> <a class="code" 
href="classprocess_1_1Future.html#a066172ff3324966119049bb9feac95ac">onDiscarded</a>(std::function&lt;<span
 class="keywordtype">void</span>()&gt;(</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160; 
       [=]() <span class="keyword">mutable</span> {</div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160; 
         <a class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>();</div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160; 
       }));</div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160; 
 }</div>
-<div class="line"><a name="l00326"></a><span class="lineno">  
326</span>&#160;</div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160; 
 <span class="keyword">template</span> &lt;<span 
class="keyword">typename</span> F&gt;</div>
-<div class="line"><a name="l00328"></a><span class="lineno"><a class="line" 
href="classprocess_1_1Future.html#a79919e2b8fded40f30f720c521c98ded">  
328</a></span>&#160;  <span class="keyword">const</span> <a class="code" 
href="classprocess_1_1Future.html">Future&lt;T&gt;</a>&amp; <a class="code" 
href="classprocess_1_1Future.html#a79919e2b8fded40f30f720c521c98ded">onAny</a>(F&amp;&amp;
 <a class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>)<span 
class="keyword"> const</span></div>
-<div class="line"><a name="l00329"></a><span class="lineno">  
329</span>&#160;<span class="keyword">  </span>{</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160; 
   <span class="keywordflow">return</span> <a class="code" 
href="classprocess_1_1Future.html#a71bde220aed3c725cef2040f63adf42a">onAny</a>(std::forward&lt;F&gt;(<a
 class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>), 
Prefer());</div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160; 
 }</div>
-<div class="line"><a name="l00332"></a><span class="lineno">  
332</span>&#160;</div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160; 
 <span class="comment">// Installs callbacks that get executed when this future 
is ready</span></div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160; 
 <span class="comment">// and associates the result of the callback with the 
future that is</span></div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160; 
 <span class="comment">// returned to the caller (which may be of a different 
type).</span></div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160; 
 <span class="keyword">template</span> &lt;<span 
class="keyword">typename</span> X&gt;</div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160; 
 <a class="code" href="classprocess_1_1Future.html">Future&lt;X&gt;</a> <a 
class="code" 
href="classprocess_1_1Future.html#a08f6977c10f9f5d9e918ef8fd91f0a5f">then</a>(<span
 class="keyword">const</span> lambda::function&lt;<a class="code" 
href="classprocess_1_1Future.html">Future&lt;X&gt;</a>(<span 
class="keyword">const</span> T&amp;)&gt;&amp; <a class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>) <span 
class="keyword">const</span>;</div>
-<div class="line"><a name="l00338"></a><span class="lineno">  
338</span>&#160;</div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160; 
 <span class="keyword">template</span> &lt;<span 
class="keyword">typename</span> X&gt;</div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160; 
 <a class="code" href="classprocess_1_1Future.html">Future&lt;X&gt;</a> <a 
class="code" 
href="classprocess_1_1Future.html#a08f6977c10f9f5d9e918ef8fd91f0a5f">then</a>(<span
 class="keyword">const</span> lambda::function&lt;X(<span 
class="keyword">const</span> T&amp;)&gt;&amp; <a class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>) <span 
class="keyword">const</span>;</div>
-<div class="line"><a name="l00341"></a><span class="lineno">  
341</span>&#160;</div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160; 
 <span class="keyword">template</span> &lt;<span 
class="keyword">typename</span> X&gt;</div>
-<div class="line"><a name="l00343"></a><span class="lineno"><a class="line" 
href="classprocess_1_1Future.html#a1b4d81f9529ea6207d2781d7cba3bdb0">  
343</a></span>&#160;  <a class="code" 
href="classprocess_1_1Future.html">Future&lt;X&gt;</a> <a class="code" 
href="classprocess_1_1Future.html#a1b4d81f9529ea6207d2781d7cba3bdb0">then</a>(<span
 class="keyword">const</span> lambda::function&lt;<a class="code" 
href="classprocess_1_1Future.html">Future&lt;X&gt;</a>()&gt;&amp; <a 
class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>)<span 
class="keyword"> const</span></div>
-<div class="line"><a name="l00344"></a><span class="lineno">  
344</span>&#160;<span class="keyword">  </span>{</div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160; 
   <span class="keywordflow">return</span> <a class="code" 
href="classprocess_1_1Future.html#a08f6977c10f9f5d9e918ef8fd91f0a5f">then</a>(lambda::function&lt;<a
 class="code" href="classprocess_1_1Future.html">Future&lt;X&gt;</a>(<span 
class="keyword">const</span> T&amp;)&gt;(<a class="code" 
href="namespaceprocess_1_1network.html#ad067110a4b38cc83785a43f49bf6c8e2">lambda::bind</a>(<a
 class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>)));</div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160; 
 }</div>
-<div class="line"><a name="l00347"></a><span class="lineno">  
347</span>&#160;</div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160; 
 <span class="keyword">template</span> &lt;<span 
class="keyword">typename</span> X&gt;</div>
-<div class="line"><a name="l00349"></a><span class="lineno"><a class="line" 
href="classprocess_1_1Future.html#a5d4894dd3a963b8011898cac76d5bf9b">  
349</a></span>&#160;  <a class="code" 
href="classprocess_1_1Future.html">Future&lt;X&gt;</a> <a class="code" 
href="classprocess_1_1Future.html#a5d4894dd3a963b8011898cac76d5bf9b">then</a>(<span
 class="keyword">const</span> lambda::function&lt;X()&gt;&amp; <a class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>)<span 
class="keyword"> const</span></div>
-<div class="line"><a name="l00350"></a><span class="lineno">  
350</span>&#160;<span class="keyword">  </span>{</div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160; 
   <span class="keywordflow">return</span> <a class="code" 
href="classprocess_1_1Future.html#a08f6977c10f9f5d9e918ef8fd91f0a5f">then</a>(lambda::function&lt;X(<span
 class="keyword">const</span> T&amp;)&gt;(<a class="code" 
href="namespaceprocess_1_1network.html#ad067110a4b38cc83785a43f49bf6c8e2">lambda::bind</a>(<a
 class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>)));</div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160; 
 }</div>
-<div class="line"><a name="l00353"></a><span class="lineno">  
353</span>&#160;</div>
-<div class="line"><a name="l00354"></a><span class="lineno">  
354</span>&#160;<span class="keyword">private</span>:</div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160; 
 <span class="keyword">template</span> &lt;</div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160; 
     <span class="keyword">typename</span> F,</div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160; 
     <span class="keyword">typename</span> X =</div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160; 
       <span class="keyword">typename</span> <a class="code" 
href="structprocess_1_1internal_1_1unwrap.html">internal::unwrap&lt;typename 
result_of&lt;F(const T&amp;)&gt;::type</a>&gt;<a class="code" 
href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">::type</a>&gt;</div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160; 
 <a class="code" href="classprocess_1_1Future.html">Future&lt;X&gt;</a> <a 
class="code" 
href="classprocess_1_1Future.html#a08f6977c10f9f5d9e918ef8fd91f0a5f">then</a>(<a
 class="code" 
href="structprocess_1_1__Deferred.html">_Deferred&lt;F&gt;</a>&amp;&amp; <a 
class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>, 
Prefer)<span class="keyword"> const</span></div>
-<div class="line"><a name="l00360"></a><span class="lineno">  
360</span>&#160;<span class="keyword">  </span>{</div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160; 
   <span class="comment">// note the then&lt;X&gt; is necessary to not have an 
infinite loop with</span></div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160; 
   <span class="comment">// then(F&amp;&amp; f)</span></div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160; 
   <span class="keywordflow">return</span> then&lt;X&gt;(<a class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>.operator 
std::function&lt;Future&lt;X&gt;(<span class="keyword">const</span> 
T&amp;)&gt;());</div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160; 
 }</div>
-<div class="line"><a name="l00365"></a><span class="lineno">  
365</span>&#160;</div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160; 
 <span class="comment">// Refer to the less preferred version of `onReady` for 
why these SFINAE</span></div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160; 
 <span class="comment">// conditions are necessary.</span></div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160; 
 <span class="keyword">template</span> &lt;</div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160; 
     <span class="keyword">typename</span> F,</div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160; 
     <span class="keyword">typename</span> X = <span 
class="keyword">typename</span> internal::unwrap&lt;</div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160; 
         <span class="keyword">typename</span> result_of&lt;<span 
class="keyword">typename</span> std::enable_if&lt;</div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160; 
             !<a class="code" 
href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">std::is_bind_expression&lt;typename
 std::decay&lt;F&gt;::type</a>&gt;::value,</div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160; 
             F&gt;<a class="code" 
href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">::type</a>()&gt;<a
 class="code" 
href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">::type</a>&gt;<a
 class="code" 
href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">::type</a>&gt;</div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160; 
 Future&lt;X&gt; <a class="code" 
href="classprocess_1_1Future.html#a08f6977c10f9f5d9e918ef8fd91f0a5f">then</a>(_Deferred&lt;F&gt;&amp;&amp;
 <a class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>, 
LessPrefer)<span class="keyword"> const</span></div>
-<div class="line"><a name="l00375"></a><span class="lineno">  
375</span>&#160;<span class="keyword">  </span>{</div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160; 
   <span class="keywordflow">return</span> then&lt;X&gt;(<a class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>.operator 
std::function&lt;Future&lt;X&gt;()&gt;());</div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160; 
 }</div>
-<div class="line"><a name="l00378"></a><span class="lineno">  
378</span>&#160;</div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160; 
 <a class="code" 
href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">template
 &lt;typename F, typename X = typename internal::unwrap&lt;typename 
result_of&lt;F(const T&amp;)&gt;::type</a>&gt;<a class="code" 
href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">::type</a>&gt;
 <span class="comment">// NOLINT(whitespace/line_length)</span></div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span>&#160; 
 Future&lt;X&gt; <a class="code" 
href="classprocess_1_1Future.html#a08f6977c10f9f5d9e918ef8fd91f0a5f">then</a>(F&amp;&amp;
 <a class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>, 
Prefer)<span class="keyword"> const</span></div>
-<div class="line"><a name="l00381"></a><span class="lineno">  
381</span>&#160;<span class="keyword">  </span>{</div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160; 
   <span class="keywordflow">return</span> 
then&lt;X&gt;(std::function&lt;Future&lt;X&gt;(<span 
class="keyword">const</span> T&amp;)&gt;(<a class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>));</div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span>&#160; 
 }</div>
-<div class="line"><a name="l00384"></a><span class="lineno">  
384</span>&#160;</div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span>&#160; 
 <span class="comment">// Refer to the less preferred version of `onReady` for 
why these SFINAE</span></div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160; 
 <span class="comment">// conditions are necessary.</span></div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160; 
 <span class="keyword">template</span> &lt;</div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160; 
     <span class="keyword">typename</span> F,</div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160; 
     <span class="keyword">typename</span> X = <span 
class="keyword">typename</span> internal::unwrap&lt;</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span>&#160; 
         <span class="keyword">typename</span> result_of&lt;<span 
class="keyword">typename</span> std::enable_if&lt;</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>&#160; 
             !<a class="code" 
href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">std::is_bind_expression&lt;typename
 std::decay&lt;F&gt;::type</a>&gt;::value,</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160; 
             F&gt;<a class="code" 
href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">::type</a>()&gt;<a
 class="code" 
href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">::type</a>&gt;<a
 class="code" 
href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">::type</a>&gt;</div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160; 
 Future&lt;X&gt; <a class="code" 
href="classprocess_1_1Future.html#a08f6977c10f9f5d9e918ef8fd91f0a5f">then</a>(F&amp;&amp;
 <a class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>, 
LessPrefer)<span class="keyword"> const</span></div>
-<div class="line"><a name="l00394"></a><span class="lineno">  
394</span>&#160;<span class="keyword">  </span>{</div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span>&#160; 
   <span class="keywordflow">return</span> 
then&lt;X&gt;(std::function&lt;Future&lt;X&gt;()&gt;(<a class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>));</div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span>&#160; 
 }</div>
-<div class="line"><a name="l00397"></a><span class="lineno">  
397</span>&#160;</div>
-<div class="line"><a name="l00398"></a><span class="lineno">  
398</span>&#160;<span class="keyword">public</span>:</div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>&#160; 
 <span class="comment">// NOTE: There are two bugs we&#39;re dealing with 
here.</span></div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>&#160; 
 <span class="comment">//   (1) GCC bug where the explicit use of `this-&gt;` 
is required in the</span></div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160; 
 <span class="comment">//       trailing return type: 
gcc.gnu.org/bugzilla/show_bug.cgi?id=57543</span></div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160; 
 <span class="comment">//   (2) VS 2017 RC bug where the explicit use of 
`this-&gt;` is disallowed.</span></div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160; 
 <span class="comment">//</span></div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span>&#160; 
 <span class="comment">// Since VS 2015 and 2017 RC both implement C++14&#39;s 
deduced return type for</span></div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span>&#160; 
 <span class="comment">// functions, we simply choose to use that on 
Windows.</span></div>
+<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160; 
   <span class="keywordflow">return</span> <a class="code" 
href="classprocess_1_1Future.html#a0af9d6f01e26acab3c2882a90fc09149">onReady</a>(</div>
+<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160; 
       std::move(deferred).<span class="keyword">operator</span> 
std::function&lt;<span class="keywordtype">void</span>(<span 
class="keyword">const</span> T&amp;)&gt;());</div>
+<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160; 
 }</div>
+<div class="line"><a name="l00187"></a><span class="lineno">  
187</span>&#160;</div>
+<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160; 
 <span class="keyword">template</span> &lt;<span 
class="keyword">typename</span> F&gt;</div>
+<div class="line"><a name="l00189"></a><span class="lineno"><a class="line" 
href="classprocess_1_1Future.html#a8af6d072946de82f639c488872ab4db8">  
189</a></span>&#160;  <span class="keyword">const</span> <a class="code" 
href="classprocess_1_1Future.html">Future&lt;T&gt;</a>&amp; <a class="code" 
href="classprocess_1_1Future.html#a8af6d072946de82f639c488872ab4db8">onFailed</a>(<a
 class="code" 
href="structprocess_1_1__Deferred.html">_Deferred&lt;F&gt;</a>&amp;&amp; 
deferred)<span class="keyword"> const</span></div>
+<div class="line"><a name="l00190"></a><span class="lineno">  
190</span>&#160;<span class="keyword">  </span>{</div>
+<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160; 
   <span class="keywordflow">return</span> <a class="code" 
href="classprocess_1_1Future.html#a3ff2c35ef526a030a7ea6d0c4ca79945">onFailed</a>(</div>
+<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160; 
       std::move(deferred).<span class="keyword">operator</span> 
std::function&lt;<span class="keywordtype">void</span>(<span 
class="keyword">const</span> std::string&amp;)&gt;());</div>
+<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160; 
 }</div>
+<div class="line"><a name="l00194"></a><span class="lineno">  
194</span>&#160;</div>
+<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160; 
 <span class="keyword">template</span> &lt;<span 
class="keyword">typename</span> F&gt;</div>
+<div class="line"><a name="l00196"></a><span class="lineno"><a class="line" 
href="classprocess_1_1Future.html#a9ed881404620ba5d7a145b2f9c2be008">  
196</a></span>&#160;  <span class="keyword">const</span> <a class="code" 
href="classprocess_1_1Future.html">Future&lt;T&gt;</a>&amp; <a class="code" 
href="classprocess_1_1Future.html#a9ed881404620ba5d7a145b2f9c2be008">onDiscarded</a>(<a
 class="code" 
href="structprocess_1_1__Deferred.html">_Deferred&lt;F&gt;</a>&amp;&amp; 
deferred)<span class="keyword"> const</span></div>
+<div class="line"><a name="l00197"></a><span class="lineno">  
197</span>&#160;<span class="keyword">  </span>{</div>
+<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160; 
   <span class="keywordflow">return</span> <a class="code" 
href="classprocess_1_1Future.html#a066172ff3324966119049bb9feac95ac">onDiscarded</a>(std::move(deferred).<span
 class="keyword">operator</span> std::function&lt;<span 
class="keywordtype">void</span>()&gt;());</div>
+<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160; 
 }</div>
+<div class="line"><a name="l00200"></a><span class="lineno">  
200</span>&#160;</div>
+<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160; 
 <span class="keyword">template</span> &lt;<span 
class="keyword">typename</span> F&gt;</div>
+<div class="line"><a name="l00202"></a><span class="lineno"><a class="line" 
href="classprocess_1_1Future.html#ab753c0730005edaef998bf8982f67e2a">  
202</a></span>&#160;  <span class="keyword">const</span> <a class="code" 
href="classprocess_1_1Future.html">Future&lt;T&gt;</a>&amp; <a class="code" 
href="classprocess_1_1Future.html#ab753c0730005edaef998bf8982f67e2a">onAny</a>(<a
 class="code" 
href="structprocess_1_1__Deferred.html">_Deferred&lt;F&gt;</a>&amp;&amp; 
deferred)<span class="keyword"> const</span></div>
+<div class="line"><a name="l00203"></a><span class="lineno">  
203</span>&#160;<span class="keyword">  </span>{</div>
+<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160; 
   <span class="keywordflow">return</span> <a class="code" 
href="classprocess_1_1Future.html#a71bde220aed3c725cef2040f63adf42a">onAny</a>(</div>
+<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160; 
       std::move(deferred).<span class="keyword">operator</span> 
std::function&lt;<span class="keywordtype">void</span>(<span 
class="keyword">const</span> <a class="code" 
href="classprocess_1_1Future.html">Future&lt;T&gt;</a>&amp;)&gt;());</div>
+<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160; 
 }</div>
+<div class="line"><a name="l00207"></a><span class="lineno">  
207</span>&#160;</div>
+<div class="line"><a name="l00208"></a><span class="lineno">  
208</span>&#160;<span class="keyword">private</span>:</div>
+<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160; 
 <span class="comment">// We use the &#39;Prefer&#39; and &#39;LessPrefer&#39; 
structs as a way to prefer</span></div>
+<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160; 
 <span class="comment">// one function over the other when doing SFINAE for the 
&#39;onReady&#39;,</span></div>
+<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160; 
 <span class="comment">// &#39;onFailed&#39;, &#39;onAny&#39;, and 
&#39;then&#39; functions. In each of these cases</span></div>
+<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160; 
 <span class="comment">// we prefer calling the version of the functor that 
takes in an</span></div>
+<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160; 
 <span class="comment">// argument (i.e., &#39;const T&amp;&#39; for 
&#39;onReady&#39; and &#39;then&#39; and &#39;const</span></div>
+<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160; 
 <span class="comment">// std::string&amp;&#39; for &#39;onFailed&#39;), but we 
allow functors that don&#39;t</span></div>
+<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160; 
 <span class="comment">// care about the argument. We don&#39;t need to do this 
for</span></div>
+<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160; 
 <span class="comment">// &#39;onDiscarded&#39; because it doesn&#39;t take an 
argument.</span></div>
+<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160; 
 <span class="keyword">struct </span>LessPrefer {};</div>
+<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160; 
 <span class="keyword">struct </span>Prefer : LessPrefer {};</div>
+<div class="line"><a name="l00219"></a><span class="lineno">  
219</span>&#160;</div>
+<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160; 
 <a class="code" 
href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">template
 &lt;typename F, typename = typename result_of&lt;F(const 
T&amp;)&gt;::type</a>&gt;</div>
+<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160; 
 <span class="keyword">const</span> Future&lt;T&gt;&amp; <a class="code" 
href="classprocess_1_1Future.html#a0af9d6f01e26acab3c2882a90fc09149">onReady</a>(F&amp;&amp;
 <a class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>, 
Prefer)<span class="keyword"> const</span></div>
+<div class="line"><a name="l00222"></a><span class="lineno">  
222</span>&#160;<span class="keyword">  </span>{</div>
+<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160; 
   <span class="keywordflow">return</span> <a class="code" 
href="classprocess_1_1Future.html#a0af9d6f01e26acab3c2882a90fc09149">onReady</a>(std::function&lt;<span
 class="keywordtype">void</span>(<span class="keyword">const</span> 
T&amp;)&gt;(</div>
+<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160; 
       [=](<span class="keyword">const</span> T&amp; t) <span 
class="keyword">mutable</span> {</div>
+<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160; 
         <a class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>(t);</div>
+<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160; 
       }));</div>
+<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160; 
 }</div>
+<div class="line"><a name="l00228"></a><span class="lineno">  
228</span>&#160;</div>
+<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160; 
 <span class="comment">// This is the less preferred `onReady`, we prefer the 
`onReady` method which</span></div>
+<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160; 
 <span class="comment">// has `f` taking a `const T&amp;` parameter. 
Unfortunately, to complicate</span></div>
+<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160; 
 <span class="comment">// matters, if `F` is the result of a `std::bind` 
expression we need to SFINAE</span></div>
+<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160; 
 <span class="comment">// out this version of `onReady` and force the use of 
the preferred `onReady`</span></div>
+<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160; 
 <span class="comment">// (which works because `std::bind` will just ignore the 
`const T&amp;` argument).</span></div>
+<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160; 
 <span class="comment">// This is necessary because Visual Studio 2015 
doesn&#39;t support using the</span></div>
+<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160; 
 <span class="comment">// `std::bind` call operator with `result_of` as 
it&#39;s technically not a</span></div>
+<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160; 
 <span class="comment">// requirement by the C++ standard.</span></div>
+<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160; 
 <span class="keyword">template</span> &lt;</div>
+<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160; 
     <span class="keyword">typename</span> F,</div>
+<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160; 
     <span class="keyword">typename</span> = <span 
class="keyword">typename</span> result_of&lt;<span 
class="keyword">typename</span> std::enable_if&lt;</div>
+<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160; 
         !<a class="code" 
href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">std::is_bind_expression&lt;typename
 std::decay&lt;F&gt;::type</a>&gt;::value,</div>
+<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160; 
         F&gt;<a class="code" 
href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">::type</a>()&gt;<a
 class="code" 
href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">::type</a>&gt;</div>
+<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160; 
 <span class="keyword">const</span> Future&lt;T&gt;&amp; <a class="code" 
href="classprocess_1_1Future.html#a0af9d6f01e26acab3c2882a90fc09149">onReady</a>(F&amp;&amp;
 <a class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>, 
LessPrefer)<span class="keyword"> const</span></div>
+<div class="line"><a name="l00243"></a><span class="lineno">  
243</span>&#160;<span class="keyword">  </span>{</div>
+<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160; 
   <span class="keywordflow">return</span> <a class="code" 
href="classprocess_1_1Future.html#a0af9d6f01e26acab3c2882a90fc09149">onReady</a>(std::function&lt;<span
 class="keywordtype">void</span>(<span class="keyword">const</span> 
T&amp;)&gt;(</div>
+<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160; 
       [=](<span class="keyword">const</span> T&amp;) <span 
class="keyword">mutable</span> {</div>
+<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160; 
         <a class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>();</div>
+<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160; 
       }));</div>
+<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160; 
 }</div>
+<div class="line"><a name="l00249"></a><span class="lineno">  
249</span>&#160;</div>
+<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160; 
 <a class="code" 
href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">template
 &lt;typename F, typename = typename result_of&lt;F(const 
std::string&amp;)&gt;::type</a>&gt; <span class="comment">// 
NOLINT(whitespace/line_length)</span></div>
+<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160; 
 <span class="keyword">const</span> Future&lt;T&gt;&amp; <a class="code" 
href="classprocess_1_1Future.html#a3ff2c35ef526a030a7ea6d0c4ca79945">onFailed</a>(F&amp;&amp;
 <a class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>, 
Prefer)<span class="keyword"> const</span></div>
+<div class="line"><a name="l00252"></a><span class="lineno">  
252</span>&#160;<span class="keyword">  </span>{</div>
+<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160; 
   <span class="keywordflow">return</span> <a class="code" 
href="classprocess_1_1Future.html#a3ff2c35ef526a030a7ea6d0c4ca79945">onFailed</a>(std::function&lt;<span
 class="keywordtype">void</span>(<span class="keyword">const</span> 
std::string&amp;)&gt;(</div>
+<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160; 
       [=](<span class="keyword">const</span> std::string&amp; message) <span 
class="keyword">mutable</span> {</div>
+<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160; 
         <a class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>(message);</div>
+<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160; 
       }));</div>
+<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160; 
 }</div>
+<div class="line"><a name="l00258"></a><span class="lineno">  
258</span>&#160;</div>
+<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160; 
 <span class="comment">// Refer to the less preferred version of `onReady` for 
why these SFINAE</span></div>
+<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160; 
 <span class="comment">// conditions are necessary.</span></div>
+<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160; 
 <span class="keyword">template</span> &lt;</div>
+<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160; 
     <span class="keyword">typename</span> F,</div>
+<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160; 
     <span class="keyword">typename</span> = <span 
class="keyword">typename</span> result_of&lt;<span 
class="keyword">typename</span> std::enable_if&lt;</div>
+<div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160; 
         !<a class="code" 
href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">std::is_bind_expression&lt;typename
 std::decay&lt;F&gt;::type</a>&gt;::value,</div>
+<div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160; 
         F&gt;<a class="code" 
href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">::type</a>()&gt;<a
 class="code" 
href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">::type</a>&gt;</div>
+<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160; 
 <span class="keyword">const</span> Future&lt;T&gt;&amp; <a class="code" 
href="classprocess_1_1Future.html#a3ff2c35ef526a030a7ea6d0c4ca79945">onFailed</a>(F&amp;&amp;
 <a class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>, 
LessPrefer)<span class="keyword"> const</span></div>
+<div class="line"><a name="l00267"></a><span class="lineno">  
267</span>&#160;<span class="keyword">  </span>{</div>
+<div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160; 
   <span class="keywordflow">return</span> <a class="code" 
href="classprocess_1_1Future.html#a3ff2c35ef526a030a7ea6d0c4ca79945">onFailed</a>(std::function&lt;<span
 class="keywordtype">void</span>(<span class="keyword">const</span> 
std::string&amp;)&gt;(</div>
+<div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160; 
       [=](<span class="keyword">const</span> std::string&amp;) <span 
class="keyword">mutable</span> {</div>
+<div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160; 
         <a class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>();</div>
+<div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160; 
       }));</div>
+<div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160; 
 }</div>
+<div class="line"><a name="l00273"></a><span class="lineno">  
273</span>&#160;</div>
+<div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160; 
 <span class="keyword">template</span> &lt;<span 
class="keyword">typename</span> F, <span class="keyword">typename</span> = 
<span class="keyword">typename</span> result_of&lt;F(const 
Future&lt;T&gt;&amp;)&gt;::type&gt; <span class="comment">// 
NOLINT(whitespace/line_length)</span></div>
+<div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160; 
 <span class="keyword">const</span> Future&lt;T&gt;&amp; <a class="code" 
href="classprocess_1_1Future.html#a71bde220aed3c725cef2040f63adf42a">onAny</a>(F&amp;&amp;
 <a class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>, 
Prefer)<span class="keyword"> const</span></div>
+<div class="line"><a name="l00276"></a><span class="lineno">  
276</span>&#160;<span class="keyword">  </span>{</div>
+<div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160; 
   <span class="keywordflow">return</span> <a class="code" 
href="classprocess_1_1Future.html#a71bde220aed3c725cef2040f63adf42a">onAny</a>(std::function&lt;<span
 class="keywordtype">void</span>(<span class="keyword">const</span> 
Future&lt;T&gt;&amp;)&gt;(</div>
+<div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160; 
       [=](<span class="keyword">const</span> Future&lt;T&gt;&amp; future) 
<span class="keyword">mutable</span> {</div>
+<div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160; 
         <a class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>(future);</div>
+<div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160; 
       }));</div>
+<div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160; 
 }</div>
+<div class="line"><a name="l00282"></a><span class="lineno">  
282</span>&#160;</div>
+<div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160; 
 <span class="comment">// Refer to the less preferred version of `onReady` for 
why these SFINAE</span></div>
+<div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160; 
 <span class="comment">// conditions are necessary.</span></div>
+<div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160; 
 <span class="keyword">template</span> &lt;</div>
+<div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160; 
     <span class="keyword">typename</span> F,</div>
+<div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160; 
     <span class="keyword">typename</span> = <span 
class="keyword">typename</span> result_of&lt;<span 
class="keyword">typename</span> std::enable_if&lt;</div>
+<div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160; 
         !<a class="code" 
href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">std::is_bind_expression&lt;typename
 std::decay&lt;F&gt;::type</a>&gt;::value,</div>
+<div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160; 
         F&gt;<a class="code" 
href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">::type</a>()&gt;<a
 class="code" 
href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">::type</a>&gt;</div>
+<div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160; 
 <span class="keyword">const</span> Future&lt;T&gt;&amp; <a class="code" 
href="classprocess_1_1Future.html#a71bde220aed3c725cef2040f63adf42a">onAny</a>(F&amp;&amp;
 <a class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>, 
LessPrefer)<span class="keyword"> const</span></div>
+<div class="line"><a name="l00291"></a><span class="lineno">  
291</span>&#160;<span class="keyword">  </span>{</div>
+<div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160; 
   <span class="keywordflow">return</span> <a class="code" 
href="classprocess_1_1Future.html#a71bde220aed3c725cef2040f63adf42a">onAny</a>(std::function&lt;<span
 class="keywordtype">void</span>(<span class="keyword">const</span> 
Future&lt;T&gt;&amp;)&gt;(</div>
+<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160; 
       [=](<span class="keyword">const</span> Future&lt;T&gt;&amp;) <span 
class="keyword">mutable</span> {</div>
+<div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160; 
         <a class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>();</div>
+<div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160; 
       }));</div>
+<div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160; 
 }</div>
+<div class="line"><a name="l00297"></a><span class="lineno">  
297</span>&#160;</div>
+<div class="line"><a name="l00298"></a><span class="lineno">  
298</span>&#160;<span class="keyword">public</span>:</div>
+<div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160; 
 <span class="keyword">template</span> &lt;<span 
class="keyword">typename</span> F&gt;</div>
+<div class="line"><a name="l00300"></a><span class="lineno"><a class="line" 
href="classprocess_1_1Future.html#a907cb66509cf2e07bff8cf919507f745">  
300</a></span>&#160;  <span class="keyword">const</span> <a class="code" 
href="classprocess_1_1Future.html">Future&lt;T&gt;</a>&amp; <a class="code" 
href="classprocess_1_1Future.html#a907cb66509cf2e07bff8cf919507f745">onDiscard</a>(F&amp;&amp;
 <a class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>)<span 
class="keyword"> const</span></div>
+<div class="line"><a name="l00301"></a><span class="lineno">  
301</span>&#160;<span class="keyword">  </span>{</div>
+<div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160; 
   <span class="keywordflow">return</span> <a class="code" 
href="classprocess_1_1Future.html#a1b80bf321358be44880d9c6bae5d9a2d">onDiscard</a>(std::function&lt;<span
 class="keywordtype">void</span>()&gt;(</div>
+<div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160; 
       [=]() <span class="keyword">mutable</span> {</div>
+<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160; 
         <a class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>();</div>
+<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160; 
       }));</div>
+<div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160; 
 }</div>
+<div class="line"><a name="l00307"></a><span class="lineno">  
307</span>&#160;</div>
+<div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160; 
 <span class="keyword">template</span> &lt;<span 
class="keyword">typename</span> F&gt;</div>
+<div class="line"><a name="l00309"></a><span class="lineno"><a class="line" 
href="classprocess_1_1Future.html#ad002735b3459454f81f77bc9604903ba">  
309</a></span>&#160;  <span class="keyword">const</span> <a class="code" 
href="classprocess_1_1Future.html">Future&lt;T&gt;</a>&amp; <a class="code" 
href="classprocess_1_1Future.html#ad002735b3459454f81f77bc9604903ba">onReady</a>(F&amp;&amp;
 <a class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>)<span 
class="keyword"> const</span></div>
+<div class="line"><a name="l00310"></a><span class="lineno">  
310</span>&#160;<span class="keyword">  </span>{</div>
+<div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160; 
   <span class="keywordflow">return</span> <a class="code" 
href="classprocess_1_1Future.html#a0af9d6f01e26acab3c2882a90fc09149">onReady</a>(std::forward&lt;F&gt;(<a
 class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>), 
Prefer());</div>
+<div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160; 
 }</div>
+<div class="line"><a name="l00313"></a><span class="lineno">  
313</span>&#160;</div>
+<div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160; 
 <span class="keyword">template</span> &lt;<span 
class="keyword">typename</span> F&gt;</div>
+<div class="line"><a name="l00315"></a><span class="lineno"><a class="line" 
href="classprocess_1_1Future.html#a8c5395e292096cc9e91047ab6958564a">  
315</a></span>&#160;  <span class="keyword">const</span> <a class="code" 
href="classprocess_1_1Future.html">Future&lt;T&gt;</a>&amp; <a class="code" 
href="classprocess_1_1Future.html#a8c5395e292096cc9e91047ab6958564a">onFailed</a>(F&amp;&amp;
 <a class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>)<span 
class="keyword"> const</span></div>
+<div class="line"><a name="l00316"></a><span class="lineno">  
316</span>&#160;<span class="keyword">  </span>{</div>
+<div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160; 
   <span class="keywordflow">return</span> <a class="code" 
href="classprocess_1_1Future.html#a3ff2c35ef526a030a7ea6d0c4ca79945">onFailed</a>(std::forward&lt;F&gt;(<a
 class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>), 
Prefer());</div>
+<div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160; 
 }</div>
+<div class="line"><a name="l00319"></a><span class="lineno">  
319</span>&#160;</div>
+<div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160; 
 <span class="keyword">template</span> &lt;<span 
class="keyword">typename</span> F&gt;</div>
+<div class="line"><a name="l00321"></a><span class="lineno"><a class="line" 
href="classprocess_1_1Future.html#a3630c865b86819b18907a8f60c948add">  
321</a></span>&#160;  <span class="keyword">const</span> <a class="code" 
href="classprocess_1_1Future.html">Future&lt;T&gt;</a>&amp; <a class="code" 
href="classprocess_1_1Future.html#a3630c865b86819b18907a8f60c948add">onDiscarded</a>(F&amp;&amp;
 <a class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>)<span 
class="keyword"> const</span></div>
+<div class="line"><a name="l00322"></a><span class="lineno">  
322</span>&#160;<span class="keyword">  </span>{</div>
+<div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160; 
   <span class="keywordflow">return</span> <a class="code" 
href="classprocess_1_1Future.html#a066172ff3324966119049bb9feac95ac">onDiscarded</a>(std::function&lt;<span
 class="keywordtype">void</span>()&gt;(</div>
+<div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160; 
       [=]() <span class="keyword">mutable</span> {</div>
+<div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160; 
         <a class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>();</div>
+<div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160; 
       }));</div>
+<div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160; 
 }</div>
+<div class="line"><a name="l00328"></a><span class="lineno">  
328</span>&#160;</div>
+<div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160; 
 <span class="keyword">template</span> &lt;<span 
class="keyword">typename</span> F&gt;</div>
+<div class="line"><a name="l00330"></a><span class="lineno"><a class="line" 
href="classprocess_1_1Future.html#a79919e2b8fded40f30f720c521c98ded">  
330</a></span>&#160;  <span class="keyword">const</span> <a class="code" 
href="classprocess_1_1Future.html">Future&lt;T&gt;</a>&amp; <a class="code" 
href="classprocess_1_1Future.html#a79919e2b8fded40f30f720c521c98ded">onAny</a>(F&amp;&amp;
 <a class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>)<span 
class="keyword"> const</span></div>
+<div class="line"><a name="l00331"></a><span class="lineno">  
331</span>&#160;<span class="keyword">  </span>{</div>
+<div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160; 
   <span class="keywordflow">return</span> <a class="code" 
href="classprocess_1_1Future.html#a71bde220aed3c725cef2040f63adf42a">onAny</a>(std::forward&lt;F&gt;(<a
 class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>), 
Prefer());</div>
+<div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160; 
 }</div>
+<div class="line"><a name="l00334"></a><span class="lineno">  
334</span>&#160;</div>
+<div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160; 
 <span class="comment">// Installs callbacks that get executed when this future 
is ready</span></div>
+<div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160; 
 <span class="comment">// and associates the result of the callback with the 
future that is</span></div>
+<div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160; 
 <span class="comment">// returned to the caller (which may be of a different 
type).</span></div>
+<div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160; 
 <span class="keyword">template</span> &lt;<span 
class="keyword">typename</span> X&gt;</div>
+<div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160; 
 <a class="code" href="classprocess_1_1Future.html">Future&lt;X&gt;</a> <a 
class="code" 
href="classprocess_1_1Future.html#ae85258f6af5c49e7b4264b5c857265bc">then</a>(lambda::function&lt;<a
 class="code" href="classprocess_1_1Future.html">Future&lt;X&gt;</a>(<span 
class="keyword">const</span> T&amp;)&gt; <a class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>) <span 
class="keyword">const</span>;</div>
+<div class="line"><a name="l00340"></a><span class="lineno">  
340</span>&#160;</div>
+<div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160; 
 <span class="keyword">template</span> &lt;<span 
class="keyword">typename</span> X&gt;</div>
+<div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160; 
 <a class="code" href="classprocess_1_1Future.html">Future&lt;X&gt;</a> <a 
class="code" 
href="classprocess_1_1Future.html#ae85258f6af5c49e7b4264b5c857265bc">then</a>(lambda::function&lt;X(<span
 class="keyword">const</span> T&amp;)&gt; <a class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>) <span 
class="keyword">const</span>;</div>
+<div class="line"><a name="l00343"></a><span class="lineno">  
343</span>&#160;</div>
+<div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160; 
 <span class="keyword">template</span> &lt;<span 
class="keyword">typename</span> X&gt;</div>
+<div class="line"><a name="l00345"></a><span class="lineno"><a class="line" 
href="classprocess_1_1Future.html#a1b450d3667a7abd43e5afcdb0a3ab146">  
345</a></span>&#160;  <a class="code" 
href="classprocess_1_1Future.html">Future&lt;X&gt;</a> <a class="code" 
href="classprocess_1_1Future.html#a1b450d3667a7abd43e5afcdb0a3ab146">then</a>(lambda::function&lt;<a
 class="code" href="classprocess_1_1Future.html">Future&lt;X&gt;</a>()&gt; <a 
class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>)<span 
class="keyword"> const</span></div>
+<div class="line"><a name="l00346"></a><span class="lineno">  
346</span>&#160;<span class="keyword">  </span>{</div>
+<div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160; 
   <span class="keywordflow">return</span> <a class="code" 
href="classprocess_1_1Future.html#ae85258f6af5c49e7b4264b5c857265bc">then</a>(</div>
+<div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160; 
       lambda::function&lt;<a class="code" 
href="classprocess_1_1Future.html">Future&lt;X&gt;</a>(<span 
class="keyword">const</span> T&amp;)&gt;(<a class="code" 
href="namespaceprocess_1_1network.html#ad067110a4b38cc83785a43f49bf6c8e2">lambda::bind</a>(std::move(<a
 class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>))));</div>
+<div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160; 
 }</div>
+<div class="line"><a name="l00350"></a><span class="lineno">  
350</span>&#160;</div>
+<div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160; 
 <span class="keyword">template</span> &lt;<span 
class="keyword">typename</span> X&gt;</div>
+<div class="line"><a name="l00352"></a><span class="lineno"><a class="line" 
href="classprocess_1_1Future.html#ae6e143a618e3aaa3e1616e6c6f833c80">  
352</a></span>&#160;  <a class="code" 
href="classprocess_1_1Future.html">Future&lt;X&gt;</a> <a class="code" 
href="classprocess_1_1Future.html#ae6e143a618e3aaa3e1616e6c6f833c80">then</a>(lambda::function&lt;X()&gt;
 <a class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>)<span 
class="keyword"> const</span></div>
+<div class="line"><a name="l00353"></a><span class="lineno">  
353</span>&#160;<span class="keyword">  </span>{</div>
+<div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160; 
   <span class="keywordflow">return</span> <a class="code" 
href="classprocess_1_1Future.html#ae85258f6af5c49e7b4264b5c857265bc">then</a>(lambda::function&lt;X(<span
 class="keyword">const</span> T&amp;)&gt;(<a class="code" 
href="namespaceprocess_1_1network.html#ad067110a4b38cc83785a43f49bf6c8e2">lambda::bind</a>(std::move(<a
 class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>))));</div>
+<div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160; 
 }</div>
+<div class="line"><a name="l00356"></a><span class="lineno">  
356</span>&#160;</div>
+<div class="line"><a name="l00357"></a><span class="lineno">  
357</span>&#160;<span class="keyword">private</span>:</div>
+<div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160; 
 <span class="keyword">template</span> &lt;</div>
+<div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160; 
     <span class="keyword">typename</span> F,</div>
+<div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160; 
     <span class="keyword">typename</span> X =</div>
+<div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160; 
       <span class="keyword">typename</span> <a class="code" 
href="structprocess_1_1internal_1_1unwrap.html">internal::unwrap&lt;typename 
result_of&lt;F(const T&amp;)&gt;::type</a>&gt;<a class="code" 
href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">::type</a>&gt;</div>
+<div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160; 
 <a class="code" href="classprocess_1_1Future.html">Future&lt;X&gt;</a> <a 
class="code" 
href="classprocess_1_1Future.html#ae85258f6af5c49e7b4264b5c857265bc">then</a>(<a
 class="code" 
href="structprocess_1_1__Deferred.html">_Deferred&lt;F&gt;</a>&amp;&amp; <a 
class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>, 
Prefer)<span class="keyword"> const</span></div>
+<div class="line"><a name="l00363"></a><span class="lineno">  
363</span>&#160;<span class="keyword">  </span>{</div>
+<div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160; 
   <span class="comment">// note the then&lt;X&gt; is necessary to not have an 
infinite loop with</span></div>
+<div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160; 
   <span class="comment">// then(F&amp;&amp; f)</span></div>
+<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160; 
   <span class="keywordflow">return</span> then&lt;X&gt;(std::move(<a 
class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>).operator 
std::function&lt;Future&lt;X&gt;(<span class="keyword">const</span> 
T&amp;)&gt;());</div>
+<div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160; 
 }</div>
+<div class="line"><a name="l00368"></a><span class="lineno">  
368</span>&#160;</div>
+<div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160; 
 <span class="comment">// Refer to the less preferred version of `onReady` for 
why these SFINAE</span></div>
+<div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160; 
 <span class="comment">// conditions are necessary.</span></div>
+<div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160; 
 <span class="keyword">template</span> &lt;</div>
+<div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160; 
     <span class="keyword">typename</span> F,</div>
+<div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160; 
     <span class="keyword">typename</span> X = <span 
class="keyword">typename</span> internal::unwrap&lt;</div>
+<div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160; 
         <span class="keyword">typename</span> result_of&lt;<span 
class="keyword">typename</span> std::enable_if&lt;</div>
+<div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160; 
             !<a class="code" 
href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">std::is_bind_expression&lt;typename
 std::decay&lt;F&gt;::type</a>&gt;::value,</div>
+<div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160; 
             F&gt;<a class="code" 
href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">::type</a>()&gt;<a
 class="code" 
href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">::type</a>&gt;<a
 class="code" 
href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">::type</a>&gt;</div>
+<div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160; 
 Future&lt;X&gt; <a class="code" 
href="classprocess_1_1Future.html#ae85258f6af5c49e7b4264b5c857265bc">then</a>(_Deferred&lt;F&gt;&amp;&amp;
 <a class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>, 
LessPrefer)<span class="keyword"> const</span></div>
+<div class="line"><a name="l00378"></a><span class="lineno">  
378</span>&#160;<span class="keyword">  </span>{</div>
+<div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160; 
   <span class="keywordflow">return</span> then&lt;X&gt;(std::move(<a 
class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>).operator 
std::function&lt;Future&lt;X&gt;()&gt;());</div>
+<div class="line"><a name="l00380"></a><span class="lineno">  380</span>&#160; 
 }</div>
+<div class="line"><a name="l00381"></a><span class="lineno">  
381</span>&#160;</div>
+<div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160; 
 <a class="code" 
href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">template
 &lt;typename F, typename X = typename internal::unwrap&lt;typename 
result_of&lt;F(const T&amp;)&gt;::type</a>&gt;<a class="code" 
href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">::type</a>&gt;
 <span class="comment">// NOLINT(whitespace/line_length)</span></div>
+<div class="line"><a name="l00383"></a><span class="lineno">  383</span>&#160; 
 Future&lt;X&gt; <a class="code" 
href="classprocess_1_1Future.html#ae85258f6af5c49e7b4264b5c857265bc">then</a>(F&amp;&amp;
 <a class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>, 
Prefer)<span class="keyword"> const</span></div>
+<div class="line"><a name="l00384"></a><span class="lineno">  
384</span>&#160;<span class="keyword">  </span>{</div>
+<div class="line"><a name="l00385"></a><span class="lineno">  385</span>&#160; 
   <span class="keywordflow">return</span> 
then&lt;X&gt;(std::function&lt;Future&lt;X&gt;(<span 
class="keyword">const</span> T&amp;)&gt;(std::forward&lt;F&gt;(<a class="code" 
href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>)));</div>
+<div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160; 
 }</div>
+<div class="line"><a name="l00387"></a><span class="lineno">  
387</span>&#160;</div>


<TRUNCATED>

Reply via email to