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. --- net/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'net') diff --git a/net/src/lib.rs b/net/src/lib.rs index 914c6d8..0e4c361 100644 --- a/net/src/lib.rs +++ b/net/src/lib.rs @@ -17,8 +17,8 @@ pub use { use error::{Error, Result}; -/// Represents Karyons's Net Error +/// Represents karyons's Net Error pub use error::Error as NetError; -/// Represents Karyons's Net Result +/// Represents karyons's Net Result pub use error::Result as NetResult; -- cgit v1.2.3