Fix code style of async API