Message from JavaScript discussions

September 2018

— Compare current with previous


What you think, ppl of the internet, should user-callbacks be async? or what type of callback should be async?

— Wat

— Should the function always be sync or async? i mean, can it be sync and async on condition (yes it can) or it is a bad practice?

Message permanent page

— Yes, that's bad

— Make it always sync or always async

— Ive heard something about it, but more info?

— Even if the asyncness is just setTimeout(..., 0); or return Promise.resolve(...)

— Hmm.. okay

— Sync for user interaction, most of the cases, async for fetches

— Async for both, always

— Uhhhh