UNPKG

jsworkerutils

Version:

Helper class that improves the the loading processes, an implementation of multithreaded JS # Development Guide ## About - This library is meant to be a node packaged module that optimize concurrent api requests and simplify as much as possible , the li

31 lines (30 loc) 1.04 kB
/*********************************************| ************ util Functions************| *********************************************/ /** * @function returns the current time * used to check time of exection and check if functions * are running in parallel */ export declare const returnCurrentTime: () => Date; /** * @function compares multiple date objects and returns * its equality state * @param {Date[]} dates - Array of dates to compare * @return { boolean } returns true if all dates are equal otherwise returns false */ export declare const compareDates: (dates: Date[]) => boolean; /** * @function measures start time of functions running on an array * @return { boolean } return true if all is executed at the same time * @return {boolean} * * */ export declare const measureStartTime: () => boolean; /** * calls an api http end point wit a GET request * @param {string} - url - http endpoint to call * @return {Promise} that resolves status */ export declare const callEndPoint: (url: string) => any;