jperkin / node-rpio

Raspberry Pi GPIO library for node.js
858 stars 124 forks source link

Asynchronous calls with node-rpio #37

Closed JohnRucker closed 4 years ago

JohnRucker commented 7 years ago

This is not an issue but I'm looking for input and apologize if this is not the correct place to post this. I'm currently working on a project that requires Asynchronous calls to your node-rpio module. To accomplish this, I have written a node class that wraps around the node-rpio module and forks it into a child process when an async call is necessary. Here is an example of one of my classes on git hub. From my testing so far this seems to work very well!

Is this okay? Is there another way or better way to make async calls to node-rpio that I may have overlooked?