Last active
February 24, 2020 14:23
-
-
Save romain130492/4ed9461846288e4a0a9f1710079b38a2 to your computer and use it in GitHub Desktop.
Async Function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
init(){ | |
that =this; | |
async function run() { | |
await that.createIsoFromCurrentDay() | |
await that.checkIfEvent() | |
await that.getOlderEvent() | |
await that.orderEventsByTime() | |
} | |
run() | |
} | |
Shorter Version : | |
async init() { | |
await this.createIsoFromCurrentDay() | |
await this.checkIfEvent() | |
await this.getOlderEvent() | |
await this.orderEventsByTime() | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment