Displaying 1 to 8 from 8 results

posterus - Composable async primitives (futures) with cancelation, control over scheduling, and coroutines

  •    Javascript

Posterus is a library of promise-like asynchronous primitives (futures) that support cancelation. Futures compose just like promises, but can also be cleanly shut down, aborting pending operations and freeing resources. Posterus also exposes its inner scheduling capabilities, allowing you to "opt out" of asynchrony when needed (motivating example).

Bree - Best job scheduler for Node.js and JavaScript with cron, dates, ms, later, and human-friendly support

  •    Javascript

Bree is the best job scheduler for Node.js and JavaScript with cron, dates, ms, later, and human-friendly support. It uses worker threads (Node.js) and web workers (browsers) to spawn sandboxed processes, and supports async/await, retries, throttling, concurrency, and cancelable jobs with graceful shutdown.

p-cancelable - Create a promise that can be canceled

  •    Javascript

Useful for animation, loading resources, long-running async computations, async iteration, etc.Same as the Promise constructor, but with a prepended onCancel parameter in executor.

CAF - Cancelable Async Functions (CAF)

  •    Javascript

CAF (/ˈkahf/) is a wrapper for function* generators that treats them like async functions, but with support for external cancelation. This utility uses ES6 (aka ES2015) features. If you need to support environments prior to ES6, transpile it first (with Babel, etc).




fetch-please - HTTP-transport that supports Promises and cancelable requests (XHR)

  •    Javascript

Moreover it's extra small (minified+gzipped less than 2.5Kb). Handling requests with promises is really easy and convenient. But if you need to abort your request you can't do it with fetch. Promises doesn't cancelable outside of the constructor.

usetimeout-react-hook - React

  •    TypeScript

React.js custom hook that sets a leak-safe timeout and returns a function to cancel it before the timeout expires. Hopefully this package will be useful to others as well.

dodgy - Optionally abortable, resolvable, or rejectable promises

  •    Javascript

The idea behind this module has been explained in my good old blog, and was born after the following gist as improved and well tested 30 LOC "life saver". In order to make a promise cancelable we need to invoke the third argument which is a callback expecting to know what to do in case of abortion.







We have large collection of open source products. Follow the tags from Tag Cloud >>


Open source products are scattered around the web. Please provide information about the open source projects you own / you use. Add Projects.