Submit From Live Data
Some scenarios require setInterval
or other "live data" utils. This means you can't use await
on the arg/div/textarea/etc because await
prevents the script from continuing on to start the setInterval
.
Use the Promise then
on arg/div/textarea/etc to allow the script to continue to run to the setInterval
. Inside of the then
callback, you will have to clear the interval for your script to continue/complete: