News for hackers. Stuff that matters.
Re:Django 3 by jakear on Monday December 02, 2019 @12:01PM (#21684252)
In Javascript, async is an optional parameter on the caller side. (Well, 'await' is, but I figure that's what you mean). It can be used with any function call, not just those that are marked async. Though it only make sense to use it with Promise-returning functions.

Alternatively, you can also use it with a plain Promise, which makes for a nice mutex. I've also used this for imitating async constructors, which is not currently possible.

There are no comments on this comment yet.