@shadlib/awaitable

An approximately minimal Promise implementation in with copious debug output

Usage no npm install needed!

<script type="module">
  import shadlibAwaitable from 'https://cdn.skypack.dev/@shadlib/awaitable';
</script>

README

Awaitable

An approximately minimal Promise implementation in Typescript with copious debug output

I wrote this as an aside to creating a way to manage long-running tasks, which I thought might as well conform to the Promise Spec. After attempting to modify that code to pass the test suite I decided it would be better to work the other way around: create a confirmant promise implementation from scratch, then add the other features to it. This is that promise implementation, made available as a separate library prior to adding any additional features.

npm run dopen (in a bash shell) will install dependencies, build, test, and open the test results, coverage report, and generated documentation. (If it doesn't work for you, please open an issue.)