Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
carstenbauer authored Feb 20, 2024
1 parent c1585df commit 64dba30
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,13 @@ julia> t = StableTasks.@spawnat 4 Threads.threadid();
julia> @inferred fetch(t)
4
```

For convenience, and similar to at Distributed.jl, there are also `@fetch` and `@fetchfrom` macros:

```julia
julia> StableTasks.@fetch 3+3
6

julia> StableTasks.@fetchfrom 2 Threads.threadid()
2
```

0 comments on commit 64dba30

Please sign in to comment.