Asynchronous arrow functions look like this:
const foo = async () => {
Asynchronous arrow functions look like this for one argument passed to it:
const foo = async evt => {
An anonymous form also works:
const foo = async function() {
The declaration of an asynchronous function is as follows:
async function foo() {
Using an asynchronous function in a callback callback :
const foo = event.onCall(async () => {
BonsaiOak Mar 22 '17 at 23:07 on 2017-03-22 23:07
source share