bergie / dnode-php

DNode RPC protocol implementation for PHP
MIT License
430 stars 86 forks source link

Promises #20

Open igorw opened 11 years ago

igorw commented 11 years ago

A promise-based API using react/promise would be interesting.

One main question to deal with though: Since callbacks can receive many return values but promises can only hold one value, what do we do. An option would be to resolve the promise with an array of arguments.

Better suggestions welcome.