This proposal is an alternative/complement to the SWARM contract. Described here:
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
The main idea is to maintain all the logic of the async/await mechanism except that all calls to async functions are "await implicit". And if you want to get the promise of an async function call it with a nowait in front. | |
Example of code: | |
Actual way: | |
var myObj = { | |
getProp1: async function() { | |
if (this.prop1) return prop1; |
NewerOlder