0

The raw org.scalajs.dom.raw.Promise is very close to the JS dom library. Is there a widely used library that transforms that into a scala.concurrent.Future ?

Henry Story
  • 2,116
  • 1
  • 17
  • 28
  • ASAIK, there isn't, which is arguably a crucial piece missing from the core library. – sjrd Nov 13 '15 at 22:45

2 Answers2

0

There are some good examples of how to do this online. These are not libraries, but at least it is something to go on. Here are two that relate to using IndexDB:

So that still leaves how to go the other way.

Henry Story
  • 2,116
  • 1
  • 17
  • 28
0

Scala.js 0.6.7 now comes with a scala.scalajs.js.Promise and operations to translate to and from a scala Future, resolving the problems discussed in this issue.

Henry Story
  • 2,116
  • 1
  • 17
  • 28