Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@agoric/eventual-send

Package Overview
Dependencies
Maintainers
4
Versions
322
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@agoric/eventual-send

Extend a Promise class to implement the eventual-send API

  • 0.1.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
260
decreased by-7.14%
Maintainers
4
Weekly downloads
 
Created
Source

MaybeExtendPromise

Build Status dependency status dev dependency status License

Promises/A+ 1.1 compliant Promises/A+ 1.1 compliant

Extend a Promise class to implements the eventual-send API. This API is used by the ECMAScript infix-bang proposal.

How to use

Note: If you're writing an application, you probably don't want to use this package directly. You'll want to use the eventual-send ! operator (infix bang) provided in SES or other platforms.

The updated EPromise class can be used as described in test/test.js.

Creating a custom EPromise Class

This package (@agoric/eventual-send) provides a maybeExtendPromise() which can be used to extend your own Promise class. When you call maybeExtendPromise(), you give it an underlying Promise constructor that is augmented with eventual-send methods.

You can extend any existing Promises/A+ implementation, including the ECMAScript 6 and later Promise implementation.

Keywords

FAQs

Package last updated on 11 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc