func (m *MemBackend) scheduleFutureJobs(ctx context.Context, queue string) {
// check for new future jobs on an interval
// TODO make the future jobs check interval configurable in MemBackend
ticker := time.NewTicker(5 * time.Second)
for {
// loop over list of future jobs, scheduling goroutines to wait for jobs that are due within the next 30 seconds
// TODO Make interval of time for which jobs are dedicated a goroutine configurable in MemBackend
m.futureJobs.Range(func(k, v any) bool {
job := v.(Job)
var queueChan chan Job
https://github.com/acaloiaro/neoq/blob/a024be6a3953a1512a1accee11bd296e6869c338/memory_backend.go#L239