How to stop when using param every in local notifications

i have job at 10:00 , i want show notify before 10 minutes and i want after 2 minutes notify show 1 times. i have make it. it show notify at 9:50 9:52 9:54 … but to 10:02 it have notify. i want go 10:00 it show final notify. What should I do ? Thanks ! sorry my english is bad.

something like

this.subscription.unsubscribe();

at the certain time?

i using local notifications, i don’t see it in docs, you have for me example , thanks