From 57400daa2573171c879614ca1bd3383a00a10ab2 Mon Sep 17 00:00:00 2001 From: yoshie <802632-arkandos@users.noreply.gitlab.com> Date: Wed, 17 Sep 2025 20:46:57 +0200 Subject: [PATCH] :memo: update docs --- src/crew/task_pool.gleam | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/crew/task_pool.gleam b/src/crew/task_pool.gleam index a00f298..c60fca7 100644 --- a/src/crew/task_pool.gleam +++ b/src/crew/task_pool.gleam @@ -264,6 +264,9 @@ pub fn parallel_map( } /// Submit a single piece of work to the pool using a subscription channel. +/// The work will be done asynchronously and the result will be sent back +/// to the provided subject. The timeout controls how long to wait for the +/// work to be added to the queue successfully. /// /// This is a lower-level function for submitting work. It is the callers /// responsibility to handle timeouts, submission order and failures. @@ -282,6 +285,9 @@ pub fn submit( } /// Submit multiple pieces of work to the pool using a subscription channel. +/// The work will be done asynchronously and the result will be sent back +/// to the provided subject. The timeout controls how long to wait for the +/// work to be added to the queue successfully. /// /// This is a lower-level function for submitting work. It is the callers /// responsibility to handle timeouts, submission order and failures. -- 2.51.2