From cc4e9c4bcfba47cd86967cb2aae675252822ff7f Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Tue, 29 Oct 2024 13:58:10 +0000 Subject: [PATCH] link doc --- docs/guide/workers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/workers.md b/docs/guide/workers.md index 6200ec7f4a..20bcb7d4c3 100644 --- a/docs/guide/workers.md +++ b/docs/guide/workers.md @@ -176,6 +176,6 @@ Note the use of [get_current_worker][textual.worker.get_current_worker] which th #### Posting messages -Most Textual functions are not thread-safe which means you will need to use `call_from_thread` to run them from a thread worker. +Most Textual functions are not thread-safe which means you will need to use [call_from_thread][textual.app.App.call_from_thread] to run them from a thread worker. An exception would be [post_message][textual.widget.Widget.post_message] which *is* thread-safe. If your worker needs to make multiple updates to the UI, it is a good idea to send [custom messages](./events.md) and let the message handler update the state of the UI.