Nashorn and Scala future to JS Promise conversion
I will try to answer the Scala Future to JS Promise part of the question. As you haven’t provided an example. I will provide one here with the conversion. If we say that we have a Future implemented in Scala this way: val f: Future = Future { session.getX() } f onComplete { case Success(data) … Read more