
Security News
White House Authorizes Private Companies to Conduct Offensive Cyber Operations
A new federal program will let vetted U.S. cybersecurity firms help investigate and disrupt foreign cybercrime groups under government direction.
A Task (Future) implementation in TypeScript. Useful for managing asynchronous tasks that may fail.
A Task is different then a Promise because it is lazy, rather then eager. A Promise
runs as soon as you instantiate it. A Task doesn't run until you call fork.
Pure functions can return tasks (just not execute them). This means that you
could, for example, return a task from a Redux reducer, if that's your thing.
npm install --save taskade
yarn add taskade
import Task from 'taskade';
function parse(s) {
return new Task(function(reject, resolve) {
try {
resolve(JSON.parse(s));
}
catch(e) {
reject(e.message);
}
});
}
parse('foo').fork(
function(err) { console.error(err) },
function(value) { console.log(value) }
);
FAQs
A future implementation in TypeScript
We found that taskade demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
A new federal program will let vetted U.S. cybersecurity firms help investigate and disrupt foreign cybercrime groups under government direction.

Research
/Security News
The campaign amassed more than 75,000 installs by targeting Russian-speaking users seeking access to blocked services.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.