Function | Package: cg | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 10.1 Unrevised from 10.0 to 10.1. 10.0 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-2022, Franz Inc. Lafayette, CA., USA. All rights reserved.
This page was not revised from the 10.0 page.
Created 2019.8.20.

|  | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 10.1 Unrevised from 10.0 to 10.1. 10.0 version