Skip to content

Commit 71d9c09

Browse files
nsajkoMasonProtter
andauthored
additional warning
Co-authored-by: Mason Protter <[email protected]>
1 parent 8453cab commit 71d9c09

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Note regarding the return type of `@spawn`:
3535
* the configuration of type inference in the Julia compiler
3636
* the return type of the input function
3737
* in particular, `typeof(StableTasks.@spawn 3) != typeof(StableTasks.@spawn 3.0)`, because `typeof(3) !== typeof(3.0)`
38+
* You should **not** write code that relies upon the exact return type of `StableTasks.@spawn` being concrete, or stable across versions. The return type in its parameter is available **only** as an optimization.
3839

3940
## `StableTasks.@spawnat`
4041

0 commit comments

Comments
 (0)