All Manuals > LispWorks® User Guide and Reference Manual > 42 The MP Package

unschedule-timer Function

Summary

Unschedules a scheduled timer.

Package

mp

Signature

unschedule-timer timer => result

Arguments
timer
A timer.
Values
result
A timer or nil.
Description

The function unschedule-timer unschedules timer.

If the specified timer has been scheduled to expire at a time after the call to unschedule-timer, then result is timer. Otherwise, result is nil.

timer is a timer, returned by make-timer or make-named-timer.

Examples
(setq timer
      (mp:make-timer 'print 10 *standard-output*))
#<Time Event : PRINT>
(mp:schedule-timer-relative timer 60)
#<Time Event : PRINT>
(mp:unschedule-timer timer)
#<Time Event : PRINT>
(mp:timer-expired-p timer)
T
See also

make-named-timer
make-timer
schedule-timer
schedule-timer-milliseconds
schedule-timer-relative
timer-expired-p
timer-name


LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:51