@ablestack/deferred-promise-ts 中文文档教程

发布于 4年前 浏览 22 项目主页 更新于 3年前

deferred-promise-ts

Overview

一个微型库,包含一个强类型的延迟承诺类,它利用 ES6 承诺并实现 Promise接口

The Problems Being Solved

允许延迟解决承诺

Key Features

一个 DeferredPromise 类,既满足 Promise 接口,也允许承诺解决被触发

Installation

    // npm
    npm i @ablestack/deferred-promise-ts --save

    // yarn
    yarn add @ablestack/deferred-promise-ts

Abridge Usage Example

// TODO

Disclaimers

此代码最初是为在单个商业项目中使用而开发的。 它被共享以防对其他人有用,并作为对开发社区和已经存在的优秀工具和库的贡献。

Refinements and Enhancements Needed

  • Open to suggestions and contributions

Companion Libraries

该库是 AbleStack 下一系列配套工具和库的一部分。 所有这些库都有一个共同的目标:

帮助小型团队和独立开发人员快速且经济地构建大创意

为实现这些目标,应用以下原则:

  • Selectively leverage existing open source tools and libraries, where, high quality, open source tools and libraries where possible
  • Curate usage examples, and guidance where available, and create where not available
  • Prioritize technology choices that embrace open source
  • PostgreSQL over MSSQL is an example of this
  • Avoid technology choices that could result in hosting vendor lock-in
  • ApolloGraphQL over AWS Amplify is an example of this
  • Automate wherever possible, from development, through testing, to deployment, monitoring, and maintenance
  • Codegen from strongly types schemas is a good example of this.
  • Where needed, develop high quality, open source tools and libraries to augment and automate existing open source tooling and libraries

Release Notes

Notes 0.3.0

  • Initial beta-ready release

deferred-promise-ts

Overview

A tiny library, containing a strongly typed deferred-promise class, that leverages ES6 promises and implements the Promiseinterface

The Problems Being Solved

Allows deferred resolution of promises

Key Features

A DeferredPromise class, that both satisfies the Promise interface, and also allows promise resolution to be triggered

Installation

    // npm
    npm i @ablestack/deferred-promise-ts --save

    // yarn
    yarn add @ablestack/deferred-promise-ts

Abridge Usage Example

// TODO

Disclaimers

This code was initially developed for use in a single commercial project. It is being shared in case useful to others, and as a contribution to the development community and the great tools and libraries that already exist.

Refinements and Enhancements Needed

  • Open to suggestions and contributions

Companion Libraries

This library is part of a collection of companion tools and libraries under the AbleStack umbrella. All of these libraries share the common goal:

Helping small teams and solo-developers build big ideas rapidly and affordably

To achieve these goals, the following principles are applied:

  • Selectively leverage existing open source tools and libraries, where, high quality, open source tools and libraries where possible
  • Curate usage examples, and guidance where available, and create where not available
  • Prioritize technology choices that embrace open source
  • PostgreSQL over MSSQL is an example of this
  • Avoid technology choices that could result in hosting vendor lock-in
  • ApolloGraphQL over AWS Amplify is an example of this
  • Automate wherever possible, from development, through testing, to deployment, monitoring, and maintenance
  • Codegen from strongly types schemas is a good example of this.
  • Where needed, develop high quality, open source tools and libraries to augment and automate existing open source tooling and libraries

Release Notes

Notes 0.3.0

  • Initial beta-ready release
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文