jayphelps / core-decorators

Library of stage-0 JavaScript decorators (aka ES2016/ES7 decorators but not accurate) inspired by languages that come with built-ins like @​override, @​deprecate, @​autobind, @​mixin and more. Popular with React/Angular, but is framework agnostic.
MIT License
4.52k stars 263 forks source link

async function support #100

Open zaaack opened 7 years ago

zaaack commented 7 years ago

Throttle/debounce won't work for async functions, hope could work with functions return a promise. Might help: https://github.com/sindresorhus/promise-fun

BurtHarris commented 7 years ago

Certainly makes sense to me, but both decorator are currently deprecated from this package, and will be removed soon.

jayphelps commented 7 years ago

Indeed, but let's keep it open because this is still valid in general for all decorators. I haven't had time to look into why things are different.