Well, this provides the opportunity for an immediate appeal under the collateral order doctrine.
The Supreme Court has allowed collateral-order appeals from criminal prosecutions in only four instances:
Denials of a double jeopardy defense,
Denials of a Speech & Debate Clause immunity,
Denials of claims of excessive bail, and
Orders requiring the involuntary medication of a defendant.
Do New York state courts recognize a collateral order doctrine?