cpp-redis / cpp_redis

C++11 Lightweight Redis client: async, thread-safe, no dependency, pipelining, multi-platform
MIT License
713 stars 198 forks source link

Async Connect #70

Open msherman13 opened 4 years ago

msherman13 commented 4 years ago

Is your feature request related to a problem? Please describe. The tcp_client_iface class support asynchronous read and write, but async_connect and async_disconnect are not implemented. this forces the user to mix sync and async code, and synchronous reconnect is not suitable for many event-based applications

Describe the solution you'd like Add async_connect and async_disconnect to the client

Describe alternatives you've considered considered using synchronous connect and disconnect, but it blocks the other components on my event loop

Additional context Using boost asio