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

make-named-timer Function

Summary

Creates and returns a named timer.

Package

mp

Signature

make-named-timer name function &rest arguments => timer

Arguments
name
A string or symbol.
function
A function.
arguments
A set of arguments to function.
Values
timer
A timer.
Description

The function make-named-timer creates and returns a named timer.

name is a string or symbol naming timer.

function is a function to be applied arguments when timer expires. Use the function schedule-timer or schedule-timer-relative to set an expiration time.

In comparison, the function make-timer creates an unnamed timer.

Examples
(setq timer (mp:make-named-timer 'timer-1 'print 10
*standard-output*))
#<Time Event TIMER-1 : PRINT>
See also

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


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