--
You received this message because you are subscribed to the Google Groups "Q Continuum (JavaScript)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to q-continuum...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
https://github.com/kriskowal/q/wiki/API-Reference#qpromisedfunc
Thus you could do
```js
var writeFile = Q.promised(qfs.writeFile);
writeFile(path, HTTP.read(url));
```
As to why q-fs doesn't do this by default, that's a question I'll leave for Kris :).
Actually, it's pretty easy to create methods that accept both promises and non-promise values. Just use `Q.promised`:https://github.com/kriskowal/q/wiki/API-Reference#qpromisedfunc
Thus you could do
```js
var writeFile = Q.promised(qfs.writeFile);writeFile(path, HTTP.read(url));
```
As to why q-fs doesn't do this by default, that's a question I'll leave for Kris :).