function run() {
  processSubscribers()
    .then(() => setTimeout(run, 60 * 1000 /* 1 minute */))
    .catch((error) => console.error(error))
}
// Simple long-polling solution to continually check the db for newly registered email addresses
Simple long-polling solution to continually check the db for newly registered email addresses
Simple long - polling solution to continually check the db for newly registered email addresses
function run() {
  processSubscribers()
    .then(() => setTimeout(run, 60 * 1000 ))
    .catch((error) => console.error(error))
}
function run ( ) { processSubscribers ( ) . then ( ( ) => setTimeout ( run , 60 * 1000 ) ) . catch ( ( error ) => console . error ( error ) ) }
Simple long-polling solution to continually check the db for newly registered email addresses
Simple long - polling solution to continually check the db for newly registered email addresses
/* 1 minute */