Runs action with a tail positioned after afterMsgId. The tail and its subscription are valid only until action returns.