---
title: Awaiter lifecycle
---
stateDiagram-v2
    [*] --> Idle : new
    Idle --> Waiting : register
    Waiting --> Waiting : register again updates waker
    Waiting --> Notified : notify_one
    Waiting --> Idle : unregister
    Notified --> Idle : take_notification
