Promise Compatible
Works as a drop-in replacement for native Promises with full compatibility
Supercharged with cancellation, delays, polling and more! ๐

import { Futurable } from '@ndriadev/futurable';
// Create a cancellable fetch request
const request = Futurable.fetch('https://api.example.com/data')
.then(response => response.json())
.then(data => console.log(data));
// Cancel it anytime
request.cancel();JavaScript's native Promise API is powerful but lacks crucial features for modern applications:
Futurable solves all of these problems with a clean, intuitive API that feels natural to use.
npm install @ndriadev/futurableyarn add @ndriadev/futurablepnpm add @ndriadev/futurable