From ff7f1a794b45b0670059959bca3a5640fcbff3ff Mon Sep 17 00:00:00 2001 From: Demin Yin Date: Thu, 28 Nov 2024 11:30:36 -0800 Subject: [PATCH] document new classes/constant added in Swoole 6.0.0-beta --- src/core/Constant.php | 3 +++ src/core/Thread/Pool.php | 3 +++ src/core/Thread/Runnable.php | 3 +++ 3 files changed, 9 insertions(+) diff --git a/src/core/Constant.php b/src/core/Constant.php index 8e2214f..7e1b3cc 100644 --- a/src/core/Constant.php +++ b/src/core/Constant.php @@ -125,6 +125,9 @@ class Constant public const OPTION_AIO_MAX_IDLE_TIME = 'aio_max_idle_time'; + /** + * @since 6.0.0-beta + */ public const OPTION_IOURING_ENTRIES = 'iouring_entries'; /** diff --git a/src/core/Thread/Pool.php b/src/core/Thread/Pool.php index bb68e7b..ab0a83c 100644 --- a/src/core/Thread/Pool.php +++ b/src/core/Thread/Pool.php @@ -15,6 +15,9 @@ use PhpParser\ParserFactory; use Swoole\Thread; +/** + * @since 6.0.0-beta + */ class Pool { private array $threads = []; diff --git a/src/core/Thread/Runnable.php b/src/core/Thread/Runnable.php index d40c9c3..0bec4ff 100644 --- a/src/core/Thread/Runnable.php +++ b/src/core/Thread/Runnable.php @@ -11,6 +11,9 @@ namespace Swoole\Thread; +/** + * @since 6.0.0-beta + */ abstract class Runnable { protected Atomic $running;