[yanan] optimize async code