faithful

Lightweight Scala.js promise implementation that does not violate parametricity

MIT License

Stars
18

faithful

faithful: deserving trust ; keeping your promises or doing what you are supposed to do.

Minimalistic Scala.js promise/future implementation that does not violate parametricity.

Key features:

  • lightweight: 50 SLOC, about 2kB of uncompressed JavaScript (thats about 50 times smaller than depending on Scalas Future),
  • efficient: 2 times faster than Scalas Future and 5 times faster than JavaScripts Promise,
  • parametric: you can safely implement Monad[faithful.Future],
  • reasonable: exceptions are not silently swallowed.

Usage

The following artifacts are published under the organization name org.julienrf:

License

This content is released under the MIT License.