Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

loop with await in js

const dummyfunction = async () => {
	for (item of items) {
      	// Until promise returns,
      	// The loop waits here!
      	await turtle();
    }
}
 
PREVIOUS NEXT
Tagged: #loop #await #js
ADD COMMENT
Topic
Name
1+2 =