Under the best of conditions, it is unsportsmanlike conduct and referee can penalize anything he wants to including loss of game, match or disqualification.
Under more serious pool room and/or gambling conditions, would seem to be asking for a good ass kicking.
If someone did that playing...