Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/patrixr/oath
- Owner: patrixr
- License: mit
- Created: 2021-07-15T04:08:40.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-07-15T04:34:30.000Z (over 3 years ago)
- Last Synced: 2024-11-06T07:35:59.235Z (2 months ago)
- Topics: experimental, learning, promise, typescript
- Language: TypeScript
- Homepage:
- Size: 240 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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);
})
```