(ii) in any other case, when the court takes cognizance of the matter to which the
proceeding relates, and
in the case of a civil or criminal proceeding, shall be deemed to continue to be pending until it is
heard and finally decided, that is to say, in a case where an appeal or revision is competent, until the
appeal or revision is heard and finally decided or, where no appeal or revision is preferred, unt il the
period of limitation prescribed for such appeal or revision has expired;