---
name: "rest_callback"
section: "3alleg4"
platform: "linux"
package: "allegro4-doc"
version: "2:4.4.3.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/rest_callback/3alleg4"
---

# rest\_callback(3alleg4)

Like rest(), but calls the callback during the wait. Allegro game programming library.

## NAME

rest\_callback - Like rest(), but calls the callback during the wait. Allegro game programming library.

## SYNOPSIS

**#include \<allegro.h\>**

**void rest\_callback(long time, void (\*callback)())**

## DESCRIPTION

Like rest(), but for non-zero values continually calls the specified function while it is waiting for the required time to elapse. If the provided \`callback' parameter is NULL, this function does exactly the same thing as calling rest().

## SEE ALSO

**install\_timer**(3alleg4), **rest**(3alleg4)
