go-zookeeper / zk

Native ZooKeeper client for Go
BSD 3-Clause "New" or "Revised" License
504 stars 130 forks source link

Add ConnectWithContext method #135

Open AndrewWPhillips opened 4 months ago

AndrewWPhillips commented 4 months ago

Add variation to Connect() method that takes a context parameter. This is a simple change that was mentioned in a TODO.

Note that canceling the context cannot (yet) be used to shut down the connection.