[Boost-bugs] [Boost C++ Libraries] #11717: Associate an Executor used to launch the continuation to a promise/packaged_task constructor.

Subject: [Boost-bugs] [Boost C++ Libraries] #11717: Associate an Executor used to launch the continuation to a promise/packaged_task constructor.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-10-10 14:55:30


#11717: Associate an Executor used to launch the continuation to a
promise/packaged_task constructor.
------------------------------+----------------------
 Reporter: viboes | Owner: anthonyw
     Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: thread
  Version: Boost 1.58.0 | Severity: Problem
 Keywords: |
------------------------------+----------------------
 Currently
 we have `async` function that constructs futures associated to an
 `Executor`.

 The `then()` member function should use this executor to launch the
 continuation. See #11716.

 But futures can also have other sources, as e.g. a `promise` or a
 `packaged_task`.
 This paper proposes the addition of `Executor` aware constructors for
 `promise<T>` and `packaged_task<R(Args)>`
 so that the continuation on the associated future make use of this
 executor.

 We propose to:
 * Add `promise<T>::promise<T>(Executor&)` Executor aware constructor.

 * Add `packaged_task<R(Args...)>::packaged_task(Executor&)` Executor aware
 constructor.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11717>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:19 UTC