Re:TeaVM: Build Fast, Modern Web Apps in Java
by shannah78 on Sunday January 31, 2021 @12:04PM
(#25980271)
"I haven't found a way to do promises yet". TeaVM provides Java wrappers for most JS APIs, including promises (https://github.com/konsoletyper/teavm/blob/master/core/src/m...). If you require an API that doesn't have a wrapper yet, it is dead simple to create your own wrapper. Or just use the @JSBody annotation to write your own ad-hoc Javascript.
[ Parent
| on HN ]