Interjection
(idiomatic) Used to express annoyance or frustration or announce that one has reached the limit of one's patience or temper.
Synonyms: that tears it, that's torn it
That does it! I'm not waiting here any longer. I'll come back tomorrow instead.
(idiomatic) Used to announce or assert completion of a task.
Source: en.wiktionary.org