Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tag to mark asynchronous functions #186

Open
bennycode opened this issue Nov 11, 2014 · 3 comments
Open

Tag to mark asynchronous functions #186

bennycode opened this issue Nov 11, 2014 · 3 comments
Labels

Comments

@bennycode
Copy link

I am a big fan of codo and its documentation options. During my work with CoffeeScript and doco I noticed that I would like to mark functions as asynchronous. Often I write it in the description of a function but it would be much nicer to have a tag for that (like @async). This could be explicitly point out that some methods (or statements) are executed asynchronously and return their results later.

IDEs could later build on that synatx and display a warning to make developers aware of it.

@aseemk
Copy link

aseemk commented Mar 28, 2015

Nice idea! I agree. Especially because then you could use e.g. @return and @throw and it would be understood that this refers to what the callback gets.

@deiwin
Copy link
Contributor

deiwin commented Apr 15, 2016

There has been a lot of discussion about a similar feature request in the JSDoc project. Probably worth checking that out before deciding on an approach here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants
@bennycode @aseemk @inossidabile @deiwin and others