diff --git a/index.html b/index.html index 89a7382..9508809 100644 --- a/index.html +++ b/index.html @@ -224,7 +224,8 @@ on CVAR in a fiber to implement clean shutdown on Ctrl-C:
Undocumented procedure. +
Run THUNK in a temporary thread and return its result to the calling +fiber.
Undocumented procedure. +
Return the stack from a &knots-exception.
Undocumented procedure. +
Return #t if OBJ is a &knots-exception.
Undocumented procedure. +
Construct a &knots-exception with the given stack.
Undocumented procedure. +
Print the backtrace and exception information from EXN to PORT. This
+procedure captures the stack, so should be run before the stack is
+unwound, so using with-exception-handler without #:unwind?
+#t, the exception may need to then be re-raised and handled in an outer
+exception handler.
+
(with-exception-handler + (lambda (exn) + ;; Recover from the exception + #f) + (lambda () + (with-exception-handler + (lambda (exn) + (print-backtrace-and-exception/knots exn) + (raise-exception exn)) + (lambda () + (do-things)))) + #:unwind? #t) +
It’s important to use print-backtrace-and-exception/knots for
+displaying backtraces involving functionality from Guile Knots, since
+the stack involved is potentially split across several fibers. The
+stacks involved are attached to the exception, and this procedure
+extracts this information out and assembles a backtrace including all
+the code involved.
Undocumented procedure. -
-Undocumented procedure. +
Return the stack from a &knots-exception.
Undocumented procedure. +
Return #t if OBJ is a &knots-exception.
Undocumented procedure. +
Construct a &knots-exception with the given stack.
Undocumented procedure. +
Print the backtrace and exception information from EXN to PORT. This
+procedure captures the stack, so should be run before the stack is
+unwound, so using with-exception-handler without #:unwind?
+#t, the exception may need to then be re-raised and handled in an outer
+exception handler.
+
(with-exception-handler + (lambda (exn) + ;; Recover from the exception + #f) + (lambda () + (with-exception-handler + (lambda (exn) + (print-backtrace-and-exception/knots exn) + (raise-exception exn)) + (lambda () + (do-things)))) + #:unwind? #t) +
It’s important to use print-backtrace-and-exception/knots for
+displaying backtraces involving functionality from Guile Knots, since
+the stack involved is potentially split across several fibers. The
+stacks involved are attached to the exception, and this procedure
+extracts this information out and assembles a backtrace including all
+the code involved.
Undocumented macro. +
Return #t if OBJ is a <parallelism-limiter>.
Undocumented macro. +
Evaluate EXP ... while holding a slot from PARALLELISM-LIMITER.
+Syntactic sugar around call-with-parallelism-limiter.
Undocumented procedure. +
Destroy PARALLELISM-LIMITER, releasing its underlying resource pool.
Undocumented macro. +
Return #t if OBJ is a <fibers-promise>.
Undocumented macro. +
Return the channel used by the resource pool.
Undocumented macro. +
Return the configuration alist of the resource pool.
Undocumented macro. +
Return the name of the resource pool.
Undocumented macro. +
Return #t if OBJ is a <resource-pool>.
Undocumented macro. +
Evaluate EXP ... with RESOURCE bound to a resource checked out from
+POOL. Syntactic sugar around call-with-resource-from-pool.
Undocumented procedure. +
Construct a &resource-pool-destroy-resource exception.
Undocumented procedure. +
Return #t if OBJ is a &resource-pool-destroy-resource
+exception.
Undocumented procedure. +
Return the pool from a &resource-pool-destroyed exception.
Undocumented procedure. +
Return #t if OBJ is a &resource-pool-destroyed exception.
5. Raises
Undocumented procedure. +
Return the pool from a &resource-pool-timeout exception.
5. Raises
Undocumented procedure. +
Return #t if OBJ is a &resource-pool-timeout exception.
5. Raises
Undocumented procedure. +
Return the pool from a &resource-pool-too-many-waiters exception.
5. Raises
Undocumented procedure. +
Return the waiters count from a &resource-pool-too-many-waiters
+exception.
5. Raises
Undocumented procedure. +
Return #t if OBJ is a &resource-pool-too-many-waiters
+exception.
Undocumented macro. +
Return the channel of the fixed-size thread pool.
Undocumented macro. +
Return the current procedures vector of the fixed-size thread pool.
Undocumented macro. +
Return #t if OBJ is a <fixed-size-thread-pool>.
Undocumented macro. +
Return the underlying resource pool of the thread pool.
Undocumented macro. +
Return #t if OBJ is a <thread-pool>.
Undocumented procedure. +
Return the arguments parameter for POOL, dispatching on pool type.
Undocumented procedure. +
Return the default checkout timeout for POOL.
Undocumented procedure. +
Return the pool from a &thread-pool-timeout-error exception.
Undocumented procedure. +
Return #t if OBJ is a &thread-pool-timeout-error
+exception.
Undocumented procedure. +
Return #t if OBJ is a &port-read-timeout-error.
Undocumented procedure. +
Return #t if OBJ is a &port-timeout-error.
Undocumented procedure. +
Return #t if OBJ is a &port-write-timeout-error.
Undocumented macro. +
Return the port number of the web server.
Undocumented macro. +
Return the socket of the web server.
Undocumented macro. +
Return #t if OBJ is a <web-server>.
Undocumented procedure. +
Default handler for exceptions raised while writing an HTTP response. +Logs the error for REQUEST to the current error port.
Undocumented procedure. +
Read and return the full body of request R as a bytevector. Handles +chunked transfer encoding.
Undocumented procedure. +
Return #t if OBJ is a &request-body-ended-prematurely
+exception.
Undocumented procedure. +
Return an input port for reading the body of request REQUEST. Handles +chunked transfer encoding.
call-with-sigintcall-with-temporary-threadcall-with-threadclassify-stack-situationdefault-write-response-exception-handler