Posts

Showing posts from 2017

Lite PromiseJS(Light weight JavaScript promise library)

lite-promise https://github.com/vijaytanwar/lite-promise Lightest implementation of promise library in JavaScript, Minified version is only 1.5 KB still supporting quote unique features. It execute all promises as fast as possible, and it directly call success or error function when all the promise resolves or rejects without using timers, which make this library superfast. Features Supported by this library when: run more then once function params: holds parameters for functions inside "when" function call. success: called when all promises are resolved error: called when any of the promise rejects cancel: abort the function call and dont call the success or error functions progress: called multiple times when promises are resolved. dynamicPromise: will wrap exiting normal javascript function in promise enabled function and return value from your function will be passed in success call and exception will treated as promise rejected. Create defered functi