fix comment of aeProcessEvents (#12884)

The implementation of aeProcessEvents seems have different behavior from
the top comment.
The implementation process file events first, then process time events.
This commit is contained in:
zalj 2023-12-26 10:58:14 +08:00 committed by GitHub
parent 71f31da66f
commit baf5699d77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -343,8 +343,8 @@ static int processTimeEvents(aeEventLoop *eventLoop) {
return processed;
}
/* Process every pending time event, then every pending file event
* (that may be registered by time event callbacks just processed).
/* Process every pending file event, then every pending time event
* (that may be registered by file event callbacks just processed).
* Without special flags the function sleeps until some file event
* fires, or when the next time event occurs (if any).
*