Function | Package: cg | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 9.0 Unrevised from 8.2 to 9.0. 8.2 version

## process-single-event

Arguments: &optional no-wait

Reads and processes a single event. This function may be useful to control the rate of event processing, or in the listen functions of some types of stream. Returns `t` if an event was processed, `nil` if not.

No-wait determines the behavior when there is not currently a pending event to process. If true, then process-single-event returns `nil` immediately; if `nil`, it waits until an event arrives.

See event-loop, which provides a loop with calls for processing events and additional functionality for managing threads. In general, you should use event-loop in preference to writing custom loops usign process-single-event.

Copyright (c) 1998-2019, Franz Inc. Oakland, CA., USA. All rights reserved.
This page was not revised from the 8.2 page.
Created 2012.5.30.

|  | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 9.0 Unrevised from 8.2 to 9.0. 8.2 version