dalejung / inode

Interactive Node.js
MIT License
3 stars 1 forks source link

Add full compatibility with sync and asynch functions that use promises. #25

Open dalejung opened 11 years ago

dalejung commented 11 years ago

So, it seems plausible to create functions that can be both async and sync, depending on whether they are within a Fiber.

The return would have to imitate a promise, so that functions that are expecting async/promises will still work.

dalejung commented 11 years ago

6458a59d596cea7290571a52804ea29ae46ee7ff

Add then compatibilty.