Boost C++ Libraries: Ticket #11717: Associate an Executor used to launch the continuation to a promise/packaged_task constructor. https://svn.boost.org/trac10/ticket/11717 <p> Currently we have <code>async</code> function that constructs futures associated to an <code>Executor</code>. </p> <p> The <code>then()</code> member function should use this executor to launch the continuation. See <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/11716" title="#11716: Bugs: ::then(f) should inherit the parent Executor (closed: fixed)">#11716</a>. </p> <p> But futures can also have other sources, as e.g. a <code>promise</code> or a <code>packaged_task</code>. This paper proposes the addition of <code>Executor</code> aware constructors for <code>promise&lt;T&gt;</code> and <code>packaged_task&lt;R(Args)&gt;</code> so that the continuation on the associated future make use of this executor. </p> <p> We propose to: </p> <ul><li>Add <code>promise&lt;T&gt;::promise&lt;T&gt;(Executor&amp;)</code> Executor aware constructor. </li></ul><ul><li>Add <code>packaged_task&lt;R(Args...)&gt;::packaged_task(Executor&amp;)</code> Executor aware constructor. </li></ul> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11717 Trac 1.4.3 viboes Sat, 10 Oct 2015 14:55:37 GMT owner, status changed https://svn.boost.org/trac10/ticket/11717#comment:1 https://svn.boost.org/trac10/ticket/11717#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Anthony Williams</span> to <span class="trac-author">viboes</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket viboes Sun, 11 Oct 2015 18:16:01 GMT <link>https://svn.boost.org/trac10/ticket/11717#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11717#comment:2</guid> <description> <p> This commit contains a fix for <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/11716" title="#11716: Bugs: ::then(f) should inherit the parent Executor (closed: fixed)">#11716</a> as well as the addition of the VERY-EXPERIMENTAL promise::set_executor and packaged_task::set_executor. These should be replaced by constructor. </p> <blockquote> <p> <a class="ext-link" href="https://github.com/boostorg/thread/commit/b8db8fef8b28414d16c66761badc1c6fcadfc38f"><span class="icon">​</span>https://github.com/boostorg/thread/commit/b8db8fef8b28414d16c66761badc1c6fcadfc38f</a> </p> </blockquote> </description> <category>Ticket</category> </item> </channel> </rss>