mirror of
https://github.com/godotengine/godot-docs.git
synced 2025-12-31 17:49:03 +03:00
classref: Sync with current master branch (6118592)
This commit is contained in:
@@ -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
|
||||
|
||||
----
|
||||
|
||||
Reference in New Issue
Block a user