mirror of
https://github.com/Naios/continuable.git
synced 2026-01-01 03:12:12 +08:00
Changing promisify::from_asio to promisify::from
This commit is contained in:
parent
d7c305ad33
commit
4665dc931b
@ -61,7 +61,7 @@ struct functional_io_service {
|
||||
}
|
||||
|
||||
auto async_resolve(std::string host, std::string service) {
|
||||
return cti::promisify<asio::ip::udp::resolver::iterator>::from_asio(
|
||||
return cti::promisify<asio::ip::udp::resolver::iterator>::from(
|
||||
[&](auto&&... args) {
|
||||
resolver_.async_resolve(std::forward<decltype(args)>(args)...);
|
||||
},
|
||||
|
||||
@ -44,10 +44,10 @@
|
||||
namespace cti {
|
||||
namespace detail {
|
||||
namespace convert {
|
||||
/// A helper class for promisifying asio style callback taking functions
|
||||
/// into a continuable.
|
||||
/// A helper class for promisifying asio and js style callback
|
||||
/// taking functions into a continuable.
|
||||
template <typename P>
|
||||
struct promisify_asio {
|
||||
struct promisify_default {
|
||||
P promise;
|
||||
|
||||
template <typename E, typename... T>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user