js-promises 0.1.0

Bindings for JS promises
Documentation

Rust crate for using and manipulating JS Promise objects, using stdweb.

Contains two major types:

  • RawPromise, a lightweight wrapper for a JS promise. These work with raw stdweb::Values. It provides Rust methods for chaining promises with Rust functions, handling cleanup.
  • Promise<TOk, TErr>, a more featureful wrapper that is capable of sending arbitrary Rust types.