enqueueJob = (func, args) => {
    arrayPush(next, [func, args]);
  }
Enqueues a job

@template {(...args: any[]) => void} F
@param {F} func - An async function to execute
@param {Parameters<F>} args - Arguments to pass to the function
@returns {void}