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

Commit

Permalink
Trac #15743: Document cancel_alarm() in alarm()
Browse files Browse the repository at this point in the history
URL: http://trac.sagemath.org/15743
Reported by: jdemeyer
Ticket author(s): Jeroen Demeyer
Reviewer(s): Marc Mezzarobba
  • Loading branch information
Release Manager authored and vbraun committed Feb 4, 2014
2 parents 494c751 + f13e110 commit 3861c7b
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 3861c7b

Please sign in to comment.