question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

space_after_anon_function doesn't work with anon async functions

See original GitHub issue

Expected:

var c = async () {}

#608 related?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
laggingreflexcommented, Sep 26, 2016

I like ESLint’s “space-before-function-paren” which covers all these (anon, named, anon async, named async) under one setting. Thoughts?

0reactions
MacKLesscommented, Sep 26, 2018

I ran this in v1.8.6 and it appears to force a space between “async” and the following parens as default. @laggingreflex and @xueqingxiao, please feel free to review this and let me know if you disagree. In the meantime, I’m going to mark this as resolved.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using "await" inside non-async function - Stack Overflow
My problem is I'd like the synchronous function to be able to wait for a value from the async one... They can't, because:....
Read more >
Call async from non-async - The Modern JavaScript Tutorial
Call async from non-async. We have a “regular” function called f . How can you call the async function wait() and use its...
Read more >
Getting Started With Async Features in Python
This step-by-step tutorial gives you the tools you need to start making asynchronous programming techniques a part of your repertoire.
Read more >
async function - JavaScript - MDN Web Docs - Mozilla
The async function declaration declares an async function where the await keyword is permitted within the function body. The async and await ......
Read more >
Concurrency and async / await - FastAPI
When you declare a path operation function with normal def instead of async def , it is run in an external threadpool that...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found