-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
awaitable<T> 和 awaitable<void> 行为逻辑略有不同。 最初使用的是特化 awaitable_promise_type<void> 的方式 现在改为不特化 awaitable, 也不特化 awaitable_promise_type, 而是将针对 T 不同的部分,作为 awaitable_promise_value<T> 然后特化 awaitable_promise_value<void> 即可。 这样需要被特化的代码量有所减少。
- Loading branch information
Showing
1 changed file
with
68 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters