Advantage unlike football if an offense occurs, play continues until the referee deems that the team that did not commit the offense has gained a tactical or territorial advantage, however if no advantage is gained then the referee award that offense where it was committed..
One of the first things a child learning the game is taught is you play to the whistle meaning you play on until the whistle tells you otherwise as advantage may be gained or lost.