Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Document cancel_alarm() in alarm()
Browse files Browse the repository at this point in the history
  • Loading branch information
jdemeyer committed Jan 27, 2014
1 parent 1bd3319 commit f13e110
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sage/misc/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1935,6 +1935,8 @@ def alarm(seconds):
seconds. This is useful for automatically interrupting long
computations and can be trapped using exception handling.
Use :func:`cancel_alarm` to cancel a previously scheduled alarm.
INPUT:
- ``seconds`` -- positive number, may be floating point
Expand All @@ -1956,7 +1958,7 @@ def alarm(seconds):

def cancel_alarm():
"""
Cancel a previously scheduled alarm (if any).
Cancel a previously scheduled alarm (if any) set by :func:`alarm`.
EXAMPLES::
Expand Down

0 comments on commit f13e110

Please sign in to comment.