Skip to content

Commit 4302a50

Browse files
authored
Merge pull request #672 from charles-dyfis-net/js-msg-public-is-acked-property
Add an is_acked property to nats.aio.msg.Msg
2 parents 06735d7 + 41ce2c9 commit 4302a50

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)