Merge branch '2368-task-docs' into 'master'

gtask: Clarify what counts as ‘too many tasks’ for rate limiting

Closes #2368

See merge request GNOME/glib!2045
This commit is contained in:
Sebastian Dröge 2021-04-15 07:22:05 +00:00
commit 7c217b1c6a

View File

@ -1528,9 +1528,9 @@ g_task_start_task_thread (GTask *task,
* *
* Although GLib currently rate-limits the tasks queued via * Although GLib currently rate-limits the tasks queued via
* g_task_run_in_thread(), you should not assume that it will always * g_task_run_in_thread(), you should not assume that it will always
* do this. If you have a very large number of tasks to run, but don't * do this. If you have a very large number of tasks to run (several tens of
* want them to all run at once, you should only queue a limited * tasks), but don't want them to all run at once, you should only queue a
* number of them at a time. * limited number of them (around ten) at a time.
* *
* Since: 2.36 * Since: 2.36
*/ */