Skip to content

Commit

Permalink
Merge pull request #329 from felixSpark/felixSpark-patch-1
Browse files Browse the repository at this point in the history
Update subscriptions.rst
  • Loading branch information
michsmit99 committed May 5, 2018
2 parents 272f047 + e2d6988 commit d372e54
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/source/subscriptions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ class instance. This is shown in the code snippet below using the

Tenant.subscribe(session)
To check an event has arrived, the method ``has_event`` can be called
To check an event has arrived, the method ``has_events`` can be called
on the subscribed class.::

Tenant.has_event(session)
Tenant.has_events(session)

If there is an event waiting, this will return ``True``.

Expand Down Expand Up @@ -88,7 +88,7 @@ as::

bob = Tenant('bob')
bob.subscribe(session)
bob.has_event(session)
bob.has_events(session)
event = bob.get_event(session)


Expand All @@ -99,7 +99,7 @@ print a message if the instance was deleted.::
bob = Tenant('Bob')
bob.subscribe(session)
while True:
if bob.has_event(session):
if bob.has_events(session):
bobs_event = bob.get_event(session)
if bobs_event.is_deleted():
print 'Bob was deleted'
Expand Down

0 comments on commit d372e54

Please sign in to comment.