From 5a80ff0db3690943a522e38152c86393ab0eb594 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 9 Oct 2024 13:48:45 -0400 Subject: Update docs to standardize function signature formatting --- docs/threads.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'docs/threads.md') diff --git a/docs/threads.md b/docs/threads.md index 1580df8c..ab0ce399 100644 --- a/docs/threads.md +++ b/docs/threads.md @@ -11,9 +11,9 @@ through thread-safe Channels with no other shared data. **Description:** Creates a new thread to execute a specified function. -**Usage:** +**Signature:** ```tomo -Thread.new(fn: func(->Void) -> Thread) +func new(fn: func(->Void) -> Thread) ``` **Parameters:** @@ -45,9 +45,9 @@ A new `Thread` object representing the created thread. **Description:** Requests the cancellation of a specified thread. -**Usage:** +**Signature:** ```tomo -cancel(thread: Thread) +func cancel(thread: Thread) ``` **Parameters:** @@ -69,9 +69,9 @@ Nothing. **Description:** Waits for a specified thread to terminate. -**Usage:** +**Signature:** ```tomo -join(thread: Thread) +func join(thread: Thread) ``` **Parameters:** @@ -93,9 +93,9 @@ Nothing. **Description:** Detaches a specified thread, allowing it to run independently. -**Usage:** +**Signature:** ```tomo -detach(thread: Thread) +func detach(thread: Thread) ``` **Parameters:** -- cgit v1.2.3