mirror of
https://github.com/Naios/continuable.git
synced 2025-12-06 16:56: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<
|
||||
Args...
|
||||
>::callback;
|
||||
|
||||
// TODO channel
|
||||
// TODO sink
|
||||
|
||||
// clang-format on
|
||||
} // end namespace cti
|
||||
|
||||
|
||||
@ -20,8 +20,17 @@
|
||||
SOFTWARE.
|
||||
**/
|
||||
|
||||
#include <string>
|
||||
|
||||
#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**) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user