schedule
schedule copied to clipboard
add wait next func, sleep to next func can run
add wait_next func, used to sleep current thread to next job that can run.