Skip to content

Commit 41ce2c9

Browse files
Add an is_acked property to nats.aio.msg.Msg
1 parent 06735d7 commit 41ce2c9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

nats/aio/msg.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,13 @@ def header(self) -> Optional[Dict[str, str]]:
7777
"""
7878
return self.headers
7979

80+
@property
81+
def is_acked(self) -> bool:
82+
"""
83+
Have we sent a terminal ack message (not in-progress) in response to this original message?
84+
"""
85+
return self._ackd
86+
8087
@property
8188
def sid(self) -> int:
8289
"""

0 commit comments

Comments
 (0)