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.