Petitions for a writ of mandamus or writ of prohibition shall have precedence over all other actions and proceedings and shall be heard and determined summarily.