From 78884caca030104557ca277dd3a41cefb70f5be8 Mon Sep 17 00:00:00 2001 From: hozan23 Date: Wed, 15 Nov 2023 17:16:39 +0300 Subject: improve the TaskGroup API the TaskGroup now holds an Executor instead of passing it when calling its spawn method also, define a global executor `Executor<'static>` and use static lifetime instead of a lifetime placeholder This improvement simplify the code for spawning a new task. There is no need to pass the executor around. --- core/Cargo.toml | 1 + 1 file changed, 1 insertion(+) (limited to 'core/Cargo.toml') diff --git a/core/Cargo.toml b/core/Cargo.toml index caa3ed5..ab05288 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -15,3 +15,4 @@ chrono = "0.4.30" rand = "0.8.5" thiserror = "1.0.47" dirs = "5.0.1" +async-task = "4.5.0" -- cgit v1.2.3