We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b127c45 commit 66c9c6cCopy full SHA for 66c9c6c
src/internals.jl
@@ -24,7 +24,9 @@ end
24
Base.schedule(t::StableTask) = (schedule(t.t); t)
25
Base.schedule(t, val; error=false) = (schedule(t.t, val; error); t)
26
27
-
+"""
28
+Similar to `Threads.@spawn` but type-stable. Creates a `Task` and schedules it to run on any available thread in the `:default` threadpool.
29
30
macro spawn(ex)
31
letargs = _lift_one_interp!(ex)
32
@@ -55,6 +57,10 @@ macro spawn(ex)
55
57
end
56
58
59
60
61
+Similar to `StableTasks.@spawn` but creates a **sticky** `Task` and schedules it to run on the thread with the given id (`thrdid`).
62
+The task is guaranteed to stay on this thread (it won't migrate to another thread).
63
64
macro spawnat(thrdid, ex)
65
66
0 commit comments