funcool

Georgiy Grigoryan 2024-11-06T09:23:47.799289Z

Hi. I'm looking at bulkhead functionality on promesa: https://funcool.github.io/promesa/latest/bulkhead.html At the REPL I tried the code as in the docs:

(pxb/create :concurrency 1
            :queue-size 16
            :executor px/*default-executor*)
And I get Execution error (UnsupportedOperationException) at promesa.exec.bulkhead/create Looking at the code, I see that pxb/create is expecting the type param. So I tried:
(pxb/create :type :executor
            :concurrency 1
            :queue-size 16
            :executor px/*default-executor*)
And I get Execution error (NullPointerException) at promesa.exec.bulkhead/create-with-executor (bulkhead.clj:173). Cannot invoke "java.lang.Character.charValue()" because "x" is null

Georgiy Grigoryan 2024-11-06T09:24:37.998009Z

Trying it with :type :semaphore also gives an error. Please help me understand what's going on.