Open GuillaumeDua opened 3 years ago
Ps : The issue (if an issue it is for you as a library designer), is related to https://en.cppreference.com/w/cpp/thread/future/%7Efuture to me
In my opinion :
auto client = zk::client::connect(/*args...*/)
should be equivalent to :
auto client = zk::client{zk::connection::connect(/*args...*/)}
Having zk::client::connect::get
blocking the current thread as long as the client is not connected is not a viable option as we do not have cancelation in the current future implementation.
Is there a way to cancel connection ?
For instance, when trying to connect to a Zk server that is not running, how can we abord the connection attempt ?
According to the following snippet,