DEV Community

Cover image for Advanced Promise: JS Promises on next level
Shivam Sharma
Shivam Sharma

Posted on • Edited on

2 1

Advanced Promise: JS Promises on next level

Hi JS Developers,

  • Have you ever needed to abort a JS Promise or any fetch request before completion?
  • Did you want to know the current status of a Promise but felt helpless?
  • Have you ever felt that if there's a way to bind some data to the promise so that it can be accessed if promise variables are handled from outside?
  • Have you ever wanted to resolve/reject a promise from the outside instead after completion?
  • I bet you wanted to have a timeout feature in Promises or JS Fetch requests but couldn't find any.

So I have created a single, huge but tiny size solution for that, which is an NPM package named advanced-promise. It's a very simple extension to the JS Promise class. Very easy to use and open source. Must check once. More details are in the link.

Any Open Source contribution is welcomed.😊

Advanced-Promise

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

While many AI coding tools operate as simple command-response systems, Qodo Gen 1.0 represents the next generation: autonomous, multi-step problem-solving agents that work alongside you.

Read full post

Top comments (0)

SurveyJS custom survey software

JavaScript Form Builder UI Component

Generate dynamic JSON-driven forms directly in your JavaScript app (Angular, React, Vue.js, jQuery) with a fully customizable drag-and-drop form builder. Easily integrate with any backend system and retain full ownership over your data, with no user or form submission limits.

Learn more