classref: Sync with current master branch (6118592)

This commit is contained in:
Godot Organization
2024-04-27 03:20:20 +00:00
parent 6321cd2a18
commit b41817daaf
38 changed files with 685 additions and 591 deletions

View File

@@ -120,6 +120,8 @@ The number of threads the task is distributed to is defined by ``tasks_needed``,
Returns a group task ID that can be used by other methods.
\ **Warning:** Every task must be waited for completion using :ref:`wait_for_task_completion<class_WorkerThreadPool_method_wait_for_task_completion>` or :ref:`wait_for_group_task_completion<class_WorkerThreadPool_method_wait_for_group_task_completion>` at some point so that any allocated resources inside the task can be cleaned up.
.. rst-class:: classref-item-separator
----
@@ -134,6 +136,8 @@ Adds ``action`` as a task to be executed by a worker thread. ``high_priority`` d
Returns a task ID that can be used by other methods.
\ **Warning:** Every task must be waited for completion using :ref:`wait_for_task_completion<class_WorkerThreadPool_method_wait_for_task_completion>` or :ref:`wait_for_group_task_completion<class_WorkerThreadPool_method_wait_for_group_task_completion>` at some point so that any allocated resources inside the task can be cleaned up.
.. rst-class:: classref-item-separator
----
@@ -160,6 +164,8 @@ Returns how many times the :ref:`Callable<class_Callable>` of the group task wit
Returns ``true`` if the group task with the given ID is completed.
\ **Note:** You should only call this method between adding the group task and awaiting its completion.
.. rst-class:: classref-item-separator
----
@@ -172,6 +178,8 @@ Returns ``true`` if the group task with the given ID is completed.
Returns ``true`` if the task with the given ID is completed.
\ **Note:** You should only call this method between adding the task and awaiting its completion.
.. rst-class:: classref-item-separator
----