Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
d00891e1
Commit
d00891e1
authored
Dec 13, 2020
by
Dominik Lohmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Integrate review feedback
parent
8183b21b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
9 deletions
+2
-9
libcaf_core/caf/response_promise.hpp
libcaf_core/caf/response_promise.hpp
+1
-2
libcaf_core/caf/typed_response_promise.hpp
libcaf_core/caf/typed_response_promise.hpp
+1
-7
No files found.
libcaf_core/caf/response_promise.hpp
View file @
d00891e1
...
...
@@ -73,7 +73,7 @@ public:
make_message
(
std
::
forward
<
T
>
(
x
),
std
::
forward
<
Ts
>
(
xs
)...));
}
/// Satisfies the promise by sending either an error or a non-er
or
r response
/// Satisfies the promise by sending either an error or a non-er
ro
r response
/// message.
template
<
class
T
>
void
deliver
(
expected
<
T
>
x
)
{
...
...
@@ -106,7 +106,6 @@ public:
}
/// Satisfies the promise by sending an error response message.
/// For non-requests, nothing is done.
void
deliver
(
error
x
);
/// Satisfies the promise by sending an empty message if this promise has a
...
...
libcaf_core/caf/typed_response_promise.hpp
View file @
d00891e1
...
...
@@ -76,7 +76,7 @@ public:
return
*
this
;
}
/// Satisfies the promise by sending either an error or a non-er
or
r response
/// Satisfies the promise by sending either an error or a non-er
ro
r response
/// message.
template
<
class
T
>
void
deliver
(
expected
<
T
>
x
)
{
...
...
@@ -100,12 +100,6 @@ public:
return
*
this
;
}
/// Satisfies the promise by sending an empty message if this promise has a
/// valid message ID, i.e., `async() == false`.
void
deliver
(
unit_t
x
)
{
promise_
.
deliver
(
x
);
}
/// Returns whether this response promise replies to an asynchronous message.
bool
async
()
const
{
return
promise_
.
async
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment