Created
May 4, 2016 19:59
-
-
Save sethdorris/ff08d05776eab53b52a5396c12a6ec33 to your computer and use it in GitHub Desktop.
Another Async Example
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
async connectButton() { | |
let connected = await this.wsConnect() | |
connected ? console.log("CONNECTED", connected) : console.log("NOT CONNECTED", connected); | |
} | |
async wsConnect() { | |
return await ws.connect(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment