Fixes the genserver that doesn't handle the scheduling of the flushing events to statsig's api.
The send_after call was being ignored or caught in the handle_info catch-all function.
This PR adds the function to handle calls sent to the process with the atom handle_events, and then reschedules another call after FlushDelay millisecons
Fixes the genserver that doesn't handle the scheduling of the flushing events to statsig's api. The
send_after
call was being ignored or caught in thehandle_info
catch-all function. This PR adds the function to handle calls sent to the process with the atomhandle_events
, and then reschedules another call after FlushDelay millisecons