Skip to content

Commit

Permalink
Remove wait argument from get
Browse files Browse the repository at this point in the history
  • Loading branch information
syrusakbary committed Apr 19, 2017
1 parent de4b0b9 commit 6474f80
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions promise/promise.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,11 +459,9 @@ def on_resolve_or_reject(_):
if not waited:
raise Exception("Timeout")

def get(self, wait=True, timeout=None):
def get(self, timeout=None):
target = self._target()
if wait or timeout:
self._wait(timeout or DEFAULT_TIMEOUT)

self._wait(timeout or DEFAULT_TIMEOUT)
return self._target_settled_value(_raise=True)


Expand Down

0 comments on commit 6474f80

Please sign in to comment.