From 6e2e194ef87cd9c42f866078ebd514d342988a95 Mon Sep 17 00:00:00 2001 From: Carsten Bauer Date: Wed, 21 Feb 2024 08:11:38 +0100 Subject: [PATCH] Bump StableTasks.jl dep to forward `@fetch` and `@fetchfrom` macros (#52) * bump StableTasks dep and forward and macros * changelog * retrigger ci * retrigger ci --- CHANGELOG.md | 5 +++++ Project.toml | 4 ++-- docs/src/refs/api.md | 2 ++ src/OhMyThreads.jl | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a3e7b59..e86e8921 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ OhMyThreads.jl Changelog ========================= +Version 0.4.3 +------------- + +- ![Feature][badge-feature] Forward (but don't export) the macros `@fetch` and `@fetchfrom` from StableTasks.jl (v0.1.5), which are analogous to the same-named macros in Distributed.jl. + Version 0.4.2 ------------- diff --git a/Project.toml b/Project.toml index 5a3bb3db..7538309a 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "OhMyThreads" uuid = "67456a42-1dca-4109-a031-0a68de7e3ad5" authors = ["Mason Protter "] -version = "0.4.2" +version = "0.4.3" [deps] BangBang = "198e06fe-97b7-11e9-32a5-e1d131e6ad66" @@ -12,7 +12,7 @@ TaskLocalValues = "ed4db957-447d-4319-bfb6-7fa9ae7ecf34" [compat] BangBang = "0.4" ChunkSplitters = "2.1" -StableTasks = "0.1.4" +StableTasks = "0.1.5" TaskLocalValues = "0.1" julia = "1.6" diff --git a/docs/src/refs/api.md b/docs/src/refs/api.md index 6cdd422e..432cb86e 100644 --- a/docs/src/refs/api.md +++ b/docs/src/refs/api.md @@ -36,5 +36,7 @@ GreedyScheduler |------------------------|---------------------------------------------------------------------| | `OhMyThreads.@spawn` | see [StableTasks.jl](https://github.com/JuliaFolds2/StableTasks.jl) | | `OhMyThreads.@spawnat` | see [StableTasks.jl](https://github.com/JuliaFolds2/StableTasks.jl) | +| `OhMyThreads.@fetch` | see [StableTasks.jl](https://github.com/JuliaFolds2/StableTasks.jl) | +| `OhMyThreads.@fetchfrom` | see [StableTasks.jl](https://github.com/JuliaFolds2/StableTasks.jl) | | `OhMyThreads.chunks` | see [ChunkSplitters.jl](https://juliafolds2.github.io/ChunkSplitters.jl/dev/references/#ChunkSplitters.chunks) | | `OhMyThreads.TaskLocalValue` | see [TaskLocalValues.jl](https://github.com/vchuravy/TaskLocalValues.jl) | diff --git a/src/OhMyThreads.jl b/src/OhMyThreads.jl index 08cc697e..bdda19be 100644 --- a/src/OhMyThreads.jl +++ b/src/OhMyThreads.jl @@ -1,6 +1,6 @@ module OhMyThreads -using StableTasks: StableTasks, @spawn, @spawnat +using StableTasks: StableTasks, @spawn, @spawnat, @fetch, @fetchfrom using ChunkSplitters: ChunkSplitters, chunks using TaskLocalValues: TaskLocalValues, TaskLocalValue