mirror of
https://github.com/Naios/continuable.git
synced 2025-12-07 01:06:44 +08:00
minor stuff
This commit is contained in:
parent
9ed0adbab7
commit
98936f6972
@ -89,6 +89,10 @@ template <typename... Args>
|
|||||||
using unique_callback = typename detail::unique_trait_of<
|
using unique_callback = typename detail::unique_trait_of<
|
||||||
Args...
|
Args...
|
||||||
>::callback;
|
>::callback;
|
||||||
|
|
||||||
|
// TODO channel
|
||||||
|
// TODO sink
|
||||||
|
|
||||||
// clang-format on
|
// clang-format on
|
||||||
} // end namespace cti
|
} // end namespace cti
|
||||||
|
|
||||||
|
|||||||
@ -20,8 +20,17 @@
|
|||||||
SOFTWARE.
|
SOFTWARE.
|
||||||
**/
|
**/
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
|
||||||
#include <continuable/continuable.hpp>
|
#include <continuable/continuable.hpp>
|
||||||
|
|
||||||
|
cti::continuable<std::string> http_request(std::string url) {
|
||||||
|
return [](cti::promise<std::string> promise) {
|
||||||
|
// ...
|
||||||
|
promise.set_value("");
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
int main(int, char**) {
|
int main(int, char**) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user