alexguan / node-zookeeper-client

A pure Javascript ZooKeeper client for Node.js
Other
540 stars 147 forks source link

Add Promise API to Client Class + Expose Client Class #87

Closed a631807682 closed 5 years ago

a631807682 commented 5 years ago
  1. Add Promise API to Client Class to suport async/await syntactic sugar . Include : createAsync removeAsync setDataAsync getDataAsync setACLAsync getACLAsync existsAsync getChildrenAsync mkdirpAsync

  2. Expose Client Class that we can extend it easily .

a631807682 commented 5 years ago

Node.js added native support for Promises with the first stable release of Node v4.0.0.

I have no idea how to support it in node >= 0.6.0 . I only support node >= 6.x by my fork version that what i need . So i would close this PR .

native-support-for-promises-in-node-js

a631807682/node-zookeeper-client