Open dalejung opened 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.
6458a59d596cea7290571a52804ea29ae46ee7ff
Add then compatibilty.
then
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.