Skip to content

Commit 64dba30

Browse files
authored
Update README.md
1 parent c1585df commit 64dba30

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,13 @@ julia> t = StableTasks.@spawnat 4 Threads.threadid();
3030
julia> @inferred fetch(t)
3131
4
3232
```
33+
34+
For convenience, and similar to at Distributed.jl, there are also `@fetch` and `@fetchfrom` macros:
35+
36+
```julia
37+
julia> StableTasks.@fetch 3+3
38+
6
39+
40+
julia> StableTasks.@fetchfrom 2 Threads.threadid()
41+
2
42+
```

0 commit comments

Comments
 (0)