Next Previous Up Top Contents Index

13 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

Themake-named-timer function creates and returns a named timer. The first argument is a string or symbol naming the timer. The second argument is a function to be applied to the remaining arguments when the timer expires. Use the functionschedule-timer orschedule-timer-relative to set an expiration time.
In comparison, the functionmake-timer creates an unnamed timer.
Example

(setq timer (mp:make-named-timer 'timer-1 'print 10
*standard-output*))

#<Time Event : 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 Reference Manual - 15 Oct 1998

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker