File: with-timeout.md

package info (click to toggle)
bordeaux-threads 0.9.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 672 kB
  • sloc: lisp: 4,765; makefile: 2
file content (36 lines) | stat: -rw-r--r-- 801 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
date: 2022-01-07T08:00:00Z
title: Macro WITH-TIMEOUT
weight: 2
---

#### Syntax:

**with-timeout** (timeout) declaration\* forms\* => results

#### Arguments and values:

*timeout* -> a non-negative real number.\
*declaration* -> a declare expression; not evaluated.\
*forms* -> an implicit progn.\
*results* -> the values returned by the forms.

#### Description:

Execute `forms` and signal a condition of type
[**timeout**](../timeout) if the execution of `forms` does not
complete within `timeout` seconds.

#### Exceptional situations:

[**timeout**](../timeout), **not-implemented**

#### See also:

[**timeout**](../timeout)

#### Notes:

On implementations which do not support **with-timeout** natively and
don't support threads either it signals a condition of type
**not-implemented**.