# TaskNofity received while not in a wait state

**URL:** <https://forums.freertos.org/t/tasknofity-received-while-not-in-a-wait-state/12158>\
**Category:** Kernel\
**Created:** [March 31, 2021, 10:29pm UTC](https://forums.freertos.org/t/tasknofity-received-while-not-in-a-wait-state/12158 "2021-03-31T22:29:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rik001](https://avatars.discourse-cdn.com/v4/letter/r/bbce88/32.png) [@Rik001](https://forums.freertos.org/u/Rik001)\
**Post date:** [March 31, 2021, 10:29pm UTC](https://forums.freertos.org/t/tasknofity-received-while-not-in-a-wait-state/12158/1 "2021-03-31T22:29:48Z")

</div>

Hi,  
just wanted to double check something quite basic…

I have a taskNotifyWait() in a state machine that can take relatively long time to go through before it reaches that taskNotifyWait().

If the notification is sent from another task or from an ISR, _ **long before** _ the receiving task reaches taskNotifyWait(), my understanding is that the notification remains in the queue and when the taskNotifyWait() is reached then it just processes it straight away, correct?

Is exactly the same for taskNotifyTake()?

Thank you

---

<div class="post-metadata">

**Author:** ![jefftenney](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/jefftenney/32/1314_2.png) [@jefftenney](https://forums.freertos.org/u/jefftenney)\
**Post date:** [March 31, 2021, 10:46pm UTC](https://forums.freertos.org/t/tasknofity-received-while-not-in-a-wait-state/12158/2 "2021-03-31T22:46:37Z")

</div>

Yes, that’s right. (Ignore these extra characters.)
