Skip to content

maichong/carefree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

carefree

Call a promise or callback function without care any exception

const carefree = require('carefree');

(async ()=> {
  await carefree(async()=>{ throw new Error()});
  console.log('Do not care the error above. Just run!');
})();

API

carefree(fn: AsyncFunction | Function | Promise): Promise<Error|null>

About

Call a promise or callback function without care any exception

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published