Lines Matching refs:promise
9 [section:promise Template `promise<>`]
12 later be retrieved from the corresponding __future__ object. `promise<>` and
15 #include <boost/fiber/future/promise.hpp>
21 class promise {
23 promise();
26 promise( __allocator_arg_t__, Allocator);
28 promise( promise &&) noexcept;
30 promise & operator=( promise &&) noexcept;
32 promise( promise const&) = delete;
34 promise & operator=( promise const&) = delete;
36 ~promise();
38 void swap( promise &) noexcept;
42 void set_value( R const&); // member only of generic promise template
43 void set_value( R &&); // member only of generic promise template
44 void set_value( R &); // member only of promise< R & > template
45 void set_value(); // member only of promise< void > template
51 void swap( promise< R > &, promise< R > &) noexcept;
57 promise();
60 [[Effects:] [Creates a promise with an empty [link shared_state shared state].]]
67 promise( __allocator_arg_t__, Allocator alloc);
70 [[Effects:] [Creates a promise with an empty [link shared_state shared state] by using `alloc`.]]
77 promise( promise && other) noexcept;
80 [[Effects:] [Creates a promise by moving the [link shared_state shared state] from `other`.]]
87 ~promise();
92 condition __broken_promise__ as if by [member_link promise..set_exception]:
96 [operator_heading promise..operator_assign..operator=]
98 promise & operator=( promise && other) noexcept;
106 [member_heading promise..swap]
108 void swap( promise & other) noexcept;
115 [member_heading promise..get_future]
124 [member_heading promise..set_value]
126 void set_value( R const& value); // member only of generic promise template
127 void set_value( R && value); // member only of generic promise template
128 void set_value( R & value); // member only of promise< R & > template
129 void set_value(); // member only of promise< void > template
136 [member_heading promise..set_exception]
145 [function_heading_for swap..promise]
148 void swap( promise< R > & l, promise< R > & r) noexcept;