|
|
|
|
|
by paldepind2
595 days ago
|
|
Thanks for the reply. I can understand that the purpose here isn't to be as powerful as JavaScript, but rather to be simpler and easier. That being said, is there a way to achieve the below or is that beyond the limits? const result = Promise.race(job1(), job2());
|
|
You could move that out to JavaScript and then call that function from hyperscript:
it could also be done as inline js: but I think if you are writing this style of code it makes more sense to just kick out to JavaScript for it.