- changed component to Futures and Promises
promise constructor overload?
Issue #60
resolved
Currently I think there is no way to write a single expression that constructs a promise with a dependency count other than 1 (without writing your own function to encapsulate this pattern).
It might be nice to either provide a constructor with an optional dependency count argument (required to be >= 1), or alternatively for promise::require_anonymous() to return *this, allowing code like:
return new promise<int>(4);
return &((new promise<int>)->require_anonymous(3));
Perhaps there is another concise way to do this?
Comments (3)
-
reporter -
reporter - changed milestone to 2018.09.30 release
- changed version to Development branch (master)
- removed responsible
- marked as trivial
This issue was triaged at the 2018-06-13 Pagoda meeting and assigned a new milestone/priority.
-
reporter - changed status to resolved
Resolved in 2d9680f (pull request #16)
- Log in to comment