Next Prev Up Top Contents Index

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 make-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 function schedule-timer or schedule-timer-relative to set an expiration time.

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

Example
(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 Reference Manual - 13 Jun 2003

Next Prev Up Top Contents Index