diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-08-18 23:25:35 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-08-18 23:25:35 -0400 |
| commit | 1f16d63ac783d9b1bb1d4a65676476d14f0af713 (patch) | |
| tree | d5882939a8735626dc3dc943aadcb07acac77453 /api/threads.md | |
| parent | 2e8c949fdcf56d6055ed8b78a825d9061ab0ceb4 (diff) | |
Update API for give/get
Diffstat (limited to 'api/threads.md')
| -rw-r--r-- | api/threads.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/api/threads.md b/api/threads.md index b6ae5138..228fc8ac 100644 --- a/api/threads.md +++ b/api/threads.md @@ -29,12 +29,12 @@ A new `Thread` object representing the created thread. >> results := |Int| >> thread := Thread.new(func(): while yes: - input := jobs:pop() - results:push(input + 10 + input := jobs:get() + results:give(input + 10 ) = Thread<0x12345678> ->> jobs:push(10) ->> results:pop() +>> jobs:give(10) +>> results:get() = 11 ``` |
