4 ms·
I think you might be waiting for awhile unfortunately. Implementing await would result in a lot of autogenerated code. Typescript is largely meant to be almost
by Permit 13y ago
I think you might be waiting for awhile unfortunately. Implementing await would result in a lot of autogenerated code. Typescript is largely meant to be almost 1:1 with the Javascript it produces.
Anders talks about that problem in this video: http://channel9.msdn.com/Events/Build/2013/9-006 http://channel9.msdn.com/Events/Build/2013/9-006
- CmonDev 13y agoAwaiting for awhile? Awful.
- yareally 13y agoThere's also a discussion[1] at Codeplex on some TypeScript compatible alternatives to async/await. [1] http://typescript.codeplex.com/discussions/397594 http://typescript.codeplex.com/discussions/397594
- omphalos 13y agoOne proposed alternative to await (for CoffeeScript) that is more one-to-one with the generated JavaScript: https://github.com/jashkenas/coffee-script/issues/2762 https://github.com/jashkenas/coffee-script/issues/2762