promesa.exec.bulkhead

Bulkhead pattern: limiter of concurrent executions.

bulkhead?

(bulkhead? o)

Check if the provided object is instance of Bulkhead type.

create

(create & {:keys [type], :as params})

get-stats

(get-stats instance)

IBulkhead

protocol

Bulkhead main API

members

-get-stats

(-get-stats _)

Get internal statistics of the bulkhead instance

-invoke!

(-invoke! _ f)

Call synchronously a function under bulkhead context

invoke!

(invoke! instance f)

IQueue

protocol

members

-offer!

(-offer! _ _)

-poll!

(-poll! _)

log!

macro

(log! & params)