Skip to content

Commit

Permalink
link doc
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Oct 29, 2024
1 parent dca0179 commit cc4e9c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/workers.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit cc4e9c4

Please sign in to comment.