pipswap example: wait for ChannelSwitch signal