Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
phi-friday committed Feb 29, 2024
2 parents 31e0df6 + b636098 commit 844f2ef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ def sample_func() -> None:


executor = TimeoutExecutor(1)
result = executor.apply(sample_func)
assert isinstance(result, AsyncResult)
try:
executor.apply(sample_func)
value = result.result()
except Exception as exc:
assert isinstance(exc, TimeoutError)

Expand Down

0 comments on commit 844f2ef

Please sign in to comment.