Loading images without promis #438
Unanswered
julian-weinert
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd like to load an image without using promises. Unfortunately escpos uses promises heavily and thus forces me to wrap my entire print handling into yet another scope.
I generally dislike promises because they force you into an endlessly growing scope tree.
Is there any way to do this differently?
await
cannot be used, as doing so results in aSyntaxError: await is only valid in async functions and the top level bodies of modules
Thanks for any input
Beta Was this translation helpful? Give feedback.
All reactions