@@ -301,21 +301,14 @@ do not execute fork() without issuing C<disconnect> if all callbacks are not exe
301301
302302=head2 run_event_loop()
303303
304- This method allows you to issue commands without waiting for their responses.
305- You can then perform a blocking wait for those responses later, if needed.
304+ This method is nonblocking and allows you to issue commands without waiting for their responses.
306305
307- Executes one iteration of the event loop to process any pending commands that have not yet been sent
308- and any incoming responses from Redis.
309-
310- If there are events that can be triggered immediately, they will all be processed.
311- In other words, if there are unsent commands, they will be pipelined and sent,
306+ If there are unsent commands, they will be pipelined and sent,
312307and if there are already-received responses, their corresponding callbacks will be executed.
313-
314- If there are no events that can be triggered immediately: there are neither unsent commands nor any Redis responses available to read,
315- but unprocessed callbacks remain, then this method will block for up to C<command_timeout > while waiting for a response from Redis.
316308When a timeout occurs, an error will be propagated to the corresponding callback(s).
317309
318- The return value can be either 1 for success (e.g., commands sent or responses read),
310+ The return value can be either 1 for success
311+ (e.g., commands sent, responses read, or exit without waiting for any responses),
3193120 for no callbacks remained, or undef for other errors.
320313
321314=head3 Notes
@@ -324,21 +317,10 @@ The return value can be either 1 for success (e.g., commands sent or responses r
324317
325318=item *
326319
327- Be aware that the timeout check will only be triggered when there are neither unsent commands nor Redis responses available to read.
328320If a timeout occurs, all remaining commands on that node will time out as well.
329321
330322=item *
331323
332- Internally, this method calls C<event_base_loop(..., EVLOOP_ONCE) > , which
333- performs a single iteration of the event loop. A command will not be fully processed in a single call.
334-
335- =item *
336-
337- If you need to process multiple commands or wait for all responses, call
338- this method repeatedly or use C<wait_all_responses > .
339-
340- =item *
341-
342324For a simpler, synchronous-like usage where you need at least one response,
343325refer to C<wait_one_response > . If you only need to block until all
344326pending commands are processed, see C<wait_all_responses > .
@@ -354,17 +336,17 @@ pending commands are processed, see C<wait_all_responses>.
354336 # Send commands to Redis without waiting for responses
355337 $redis->run_event_loop();
356338
357- # Possibly wait for responses
339+ # If any responses are available, read them immediately without waiting for the rest
358340 $redis->run_event_loop();
359341
360342=head2 wait_one_response()
361343
362- If there are any unexcuted callbacks, it will block until at least one is executed.
344+ If there are any unexecuted callbacks, it will block until at least one is executed.
363345The return value can be either 1 for success, 0 for no callbacks remained, or undef for other errors.
364346
365347=head2 wait_all_responses()
366348
367- If there are any unexcuted callbacks, it will block until all of them are executed.
349+ If there are any unexecuted callbacks, it will block until all of them are executed.
368350The return value can be either 1 for success, 0 for no callbacks remained, or undef for other errors.
369351
370352=head2 disconnect()
0 commit comments