import { CronJob } from 'cron' ; import { Logger } from '@nestjs/common' ; remarks This method is part of the  shared .
 *
 *  returns beta export const timeout = ( ) => { const taskID = setTimeout ( ( ) => { Logger . debug ( 'Task completed' , 'Timeout' , false ) ; } , 1000 ) ; clearTimeout ( taskID ) ; } ; remarks This method is part of the  shared .
 *
 *  returns beta export const interval = ( ) => { const intervalID = setInterval ( ( ) => { Logger . debug ( 'Task executed' , 'Interval' , false ) ; } , 2000 ) ; clearInterval ( intervalID ) ; } ; remarks This method is part of the  shared .
 *
 *  returns beta export const cron = ( ) => { const job = new CronJob ( { cronTime : '0 0 12 * * MON-FRI' , onTick : ( ) => { Logger . debug ( 'Cron job completed' , 'Cron' , false ) ; } , start : false , timeZone : 'Asia/Ho_Chi_Minh' } ) ; job . start ( ) ; } ;