patrixr / oath

A Promise implementation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Oath

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

forthebadge forthebadge

Usage

Works exactly like normal promises

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

About

A Promise implementation

License:MIT License


Languages

Language:TypeScript 100.0%