Allow setting the scheduler for a resource pool

This commit is contained in:
Christopher Baines 2024-08-14 21:13:42 +01:00
parent 0c08ce069d
commit 7f1aaa5e99

View file

@ -110,6 +110,7 @@
(duration-logger (const #f))
destructor
lifetime
scheduler
(name "unnamed"))
(define (initializer/safe)
(with-exception-handler
@ -342,7 +343,9 @@
available
waiters
resources-last-used)))))
#:unwind? #t))))
#:unwind? #t)))
(or scheduler
(current-scheduler)))
(make-resource-pool-record name channel)))