Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
capnproto
Commits
55ab49d0
Commit
55ab49d0
authored
Feb 19, 2015
by
Kenton Varda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #182.
parent
554e7a0e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
async-inl.h
c++/src/kj/async-inl.h
+4
-1
async.c++
c++/src/kj/async.c++
+4
-0
No files found.
c++/src/kj/async-inl.h
View file @
55ab49d0
...
...
@@ -703,7 +703,10 @@ struct IdentityFunc<void> {
};
template
<>
struct
IdentityFunc
<
Promise
<
void
>>
{
inline
Promise
<
void
>
operator
()()
const
{
return
READY_NOW
;
}
Promise
<
void
>
operator
()()
const
;
// This can't be inline because it will make the translation unit depend on kj-async. Awkwardly,
// Cap'n Proto relies on being able to include this header without creating such a link-time
// dependency.
};
}
// namespace _ (private)
...
...
c++/src/kj/async.c++
View file @
55ab49d0
...
...
@@ -941,5 +941,9 @@ void AdapterPromiseNodeBase::onReady(Event& event) noexcept {
onReadyEvent
.
init
(
event
);
}
// -------------------------------------------------------------------
Promise
<
void
>
IdentityFunc
<
Promise
<
void
>>::
operator
()()
const
{
return
READY_NOW
;
}
}
// namespace _ (private)
}
// namespace kj
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