Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Promises in worker scripts

1569007950
Ada L.
Marketplace Creator
Sheet Author
API Scripter
Long ago, es6 Promises didn't used to work in worker scripts for character sheets. Does anyone know if this was ever fixed? It would be nice to not have to explicitly use callbacks for all the asynchronous parts.
1569008437
GiGs
Pro
Sheet Author
API Scripter
I tried using them a couple of months ago, and it didnt work. I don't think it's been changed.
1569027585
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Unfortunately it is not possible. Not sure if it's a technical hurdle or what, but the problem is that using anything asynchronous (other than sheetworker functions) breaks the link between that run of the code and the sheet in question.