make function async to release CPU during unattach schedule process