Skip to content

Commit

Permalink
Merge pull request pika#1361 from pika/pikagh-1240
Browse files Browse the repository at this point in the history
Add is_opening method
  • Loading branch information
lukebakken authored Jun 28, 2022
2 parents 98fcf63 + 1bb8106 commit 3a86366
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions pika/channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -753,6 +753,15 @@ def is_open(self):
"""
return self._state == self.OPEN

@property
def is_opening(self):
"""Returns True if the channel is opening.
:rtype: bool
"""
return self._state == self.OPENING

def open(self):
"""Open the channel"""
self._set_state(self.OPENING)
Expand Down
4 changes: 2 additions & 2 deletions testdata/versions.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"erlang": "24.3.3",
"rabbitmq": "3.9.15"
"erlang": "25.0.2",
"rabbitmq": "3.10.5"
}

0 comments on commit 3a86366

Please sign in to comment.