拥抱Generator，告别回调