run-in-threadPortable Threadsspawn-formsleep-nearly-foreverGoTo Top

sleep-nearly-forever   &optional seconds[Function]

Purpose
A maximum-time-bounded sleep.

Package   :portable-threads

Module   :portable-threads

Arguments and values

seconds     An integer (default is nearly-forever-seconds)

Description
Calls sleep with seconds or nearly-forever-seconds, whichever is less. Using nearly-forever-seconds protects against exceeding the duration limit of the Common Lisp implementation's sleep function for very long duration sleeping, by truncating the duration to nearly-forever-seconds.

See also
    nearly-forever-seconds

Examples

  > (sleep-nearly-forever)    ; sleep for a very long time
     ...
  > (sleep-nearly-forever     ; sleep as long as the above
       (* 2 nearly-forever-seconds))
     ...
  >


The GBBopen Project


run-in-threadPortable Threadsspawn-formsleep-nearly-foreverGoTo Top