From d31cd5e509721e64471b3282244989425cb1ae16 Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Fri, 28 Jun 2019 19:58:37 -0400 Subject: [PATCH] Revise optional args --- docs/api/cyclone/concurrent.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/api/cyclone/concurrent.md b/docs/api/cyclone/concurrent.md index 17cb1ff1..fa7cb5e7 100644 --- a/docs/api/cyclone/concurrent.md +++ b/docs/api/cyclone/concurrent.md @@ -291,10 +291,12 @@ Predicate to determine if `obj` is a thread pool. Returns `#t` if so, `#f` other ### make-thread-pool - (make-thread-pool thread-count) + (make-thread-pool thread-count [handler]) Create a new thread pool consisting of `thread-count` threads. +If `handler` is specified then it will be used as each thread's default exception handler. + ### thread-pool-size (thread-pool-size tp) @@ -323,7 +325,7 @@ Add a new task to the given thread pool `tp`. ### thread-pool-release! - (thread-pool-release! tp . how) + (thread-pool-release! tp [how]) Call this if the thread pool `tp` will no longer be used. All thread pool threads are stopped and cleaned up by the system.