Git Product home page Git Product logo

Comments (2)

sindresorhus avatar sindresorhus commented on July 18, 2024 3

However, the AbortController interface is primarily targeted at web requests, and since p-cancelable is useful for a lot more than web requests, it might be worth clarifying that in the readme.

That is not entirely correct. Node.js is adding it to a lot of APIs. The stream, child_process, and fs module supports it now. Yes, AbortController started as a way to cancel web requests in the browser, since the standard committees could never decide how to add cancellation to promises. However, since there's no better alternative, a lot of projects are adopting it for everything.


I don't plan to deprecate this package, but I also think it's better to standardize on a single thing, and it looks like AbortController is winning.

from p-cancelable.

jonschlinkert avatar jonschlinkert commented on July 18, 2024

TIL:

Node.js is adding it to a lot of APIs. The stream, child_process, and fs module supports it now

Nice, I wasn't aware of that! I have some reading to do.

This just proves Cunningham's Law is correct, once again.

Closing, thanks!

from p-cancelable.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.