… | |
… | |
540 | This is a special request - it does nothing in itself and is only used for |
540 | This is a special request - it does nothing in itself and is only used for |
541 | side effects, such as when you want to add a dummy request to a group so |
541 | side effects, such as when you want to add a dummy request to a group so |
542 | that finishing the requests in the group depends on executing the given |
542 | that finishing the requests in the group depends on executing the given |
543 | code. |
543 | code. |
544 | |
544 | |
|
|
545 | While this request does nothing, it still goes through the execution |
|
|
546 | phase and still requires a worker thread. Thus, the callback will not |
|
|
547 | be executed immediately but only after other requests in the queue have |
|
|
548 | entered their execution phase. This can be used to measure request |
|
|
549 | latency. |
|
|
550 | |
545 | =item IO::AIO::aio_sleep $fractional_seconds, $callback->() *NOT EXPORTED* |
551 | =item IO::AIO::aio_sleep $fractional_seconds, $callback->() *NOT EXPORTED* |
546 | |
552 | |
547 | Mainly used for debugging and benchmarking, this aio request puts one of |
553 | Mainly used for debugging and benchmarking, this aio request puts one of |
548 | the request workers to sleep for the given time. |
554 | the request workers to sleep for the given time. |
549 | |
555 | |