aboutsummaryrefslogtreecommitdiff
path: root/docs/channels.md
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-10-09 13:26:28 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-10-09 13:26:28 -0400
commit074cf22ad462eafe963e4a749b2b74cab51211a1 (patch)
treee1d7f938f2d949cc5dcf67ca648f200663e36562 /docs/channels.md
parent47fca946065508cff4151a32b3008c161983fd9d (diff)
Change function syntax from `func(args)->ret` to `func(args -> ret)`
Diffstat (limited to 'docs/channels.md')
-rw-r--r--docs/channels.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/channels.md b/docs/channels.md
index 8763f11d..47b9ced4 100644
--- a/docs/channels.md
+++ b/docs/channels.md
@@ -31,7 +31,7 @@ Adds an item to the channel.
**Usage:**
```markdown
-give(channel:|T|, item: T, front: Bool = no) -> Void
+give(channel:|T|, item: T, front: Bool = no -> Void)
```
**Parameters:**
@@ -57,7 +57,7 @@ Adds multiple items to the channel.
**Usage:**
```markdown
-give_all(channel:|T|, items: [T], front: Bool = no) -> Void
+give_all(channel:|T|, items: [T], front: Bool = no -> Void)
```
**Parameters:**
@@ -83,7 +83,7 @@ Removes and returns an item from the channel. If the channel is empty, it waits
**Usage:**
```markdown
-get(channel:|T|, front: Bool = yes) -> T
+get(channel:|T|, front: Bool = yes -> T)
```
**Parameters:**
@@ -110,7 +110,7 @@ it. If the channel is empty, it waits until an item is available.
**Usage:**
```markdown
-peek(channel:|T|, front: Bool = yes) -> T
+peek(channel:|T|, front: Bool = yes -> T)
```
**Parameters:**
@@ -136,7 +136,7 @@ Removes all items from the channel.
**Usage:**
```markdown
-clear(channel:|T|) -> Void
+clear(channel:|T| -> Void)
```
**Parameters:**
@@ -160,7 +160,7 @@ Returns a list of all items currently in the channel without removing them.
**Usage:**
```markdown
-channel:view() -> [T]
+channel:view(->[T])
```
**Parameters:**