sleep(0) is a valid yield, but use the sync mode and goto instead