JSPM

  • Created
  • Published
  • Downloads 38559
  • Score
    100M100P100Q167310F
  • License Apache-2.0

Extend a Promise class to implement the eventual-send API

Package Exports

  • @endo/eventual-send
  • @endo/eventual-send/package.json
  • @endo/eventual-send/shim.js
  • @endo/eventual-send/utils.js

Readme

HandledPromise

dependency status dev dependency status License

Create a HandledPromise class to implement the eventual-send API. This API is used by the ECMAScript eventual-send proposal.

How to use

To install the HandledPromise global property shim, do:

import '@agoric/eventual-send/shim';

After that, you can use HandledPromise in any of your code. If you need access to the E proxy maker, do:

import { E } from '@agoric/eventual-send';