Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
actor-incubator
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
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-incubator
Commits
9afbce9e
Commit
9afbce9e
authored
Jun 03, 2020
by
Jakob Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify duration template
parent
b14bcc85
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
libcaf_net/caf/net/middleman.hpp
libcaf_net/caf/net/middleman.hpp
+4
-5
No files found.
libcaf_net/caf/net/middleman.hpp
View file @
9afbce9e
...
...
@@ -18,6 +18,7 @@
#pragma once
#include <chrono>
#include <set>
#include <string>
#include <thread>
...
...
@@ -87,11 +88,9 @@ public:
/// Resolves a path to a remote actor.
void
resolve
(
const
uri
&
locator
,
const
actor
&
listener
);
template
<
class
Handle
=
actor
,
class
Rep
,
class
Period
>
expected
<
Handle
>
remote_actor
(
const
uri
&
locator
,
std
::
chrono
::
duration
<
Rep
,
Period
>
timeout_duration
=
std
::
chrono
::
seconds
(
5
))
{
template
<
class
Handle
=
actor
,
class
Duration
=
std
::
chrono
::
seconds
>
expected
<
Handle
>
remote_actor
(
const
uri
&
locator
,
Duration
timeout_duration
=
std
::
chrono
::
seconds
(
5
))
{
scoped_actor
self
{
sys_
};
resolve
(
locator
,
self
);
Handle
handle
;
...
...
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