Comment Comment by tln I like it! Another one-liner I'm constantly adding is const wait = ms => new Promise(resolve => setTimeout(resolve, ms)) Whatever runs the main function should probably do more, like handling rejections. parent tln 3 years ago