subscription function has finished,but there are still publish function and switcher unfinished