Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/patrixr/oath

A Promise implementation
https://github.com/patrixr/oath

experimental learning promise typescript

Last synced: 15 days ago
JSON representation

A Promise implementation

Awesome Lists containing this project

README

        

# Oath

A Promise implementation. Just an experiment. *Do not use this in production*

[![forthebadge](https://forthebadge.com/images/badges/0-percent-optimized.svg)](https://forthebadge.com)
[![forthebadge](https://forthebadge.com/images/badges/60-percent-of-the-time-works-every-time.svg)](https://forthebadge.com)

## Usage

Works exactly like normal promises

```js
new Oath((resolve, reject) => {
setTimeout(() => resolve('yay'), 1000)
}).then((res) => {
console.log(res);
})
```