Changing promisify::from_asio to promisify::from

This commit is contained in:
Denis Blank 2018-03-11 08:23:58 +01:00
parent d7c305ad33
commit 4665dc931b
2 changed files with 4 additions and 4 deletions

View File

@ -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)...);
},

View File

@ -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>