SemaphoreMap, provision semaphore with giving key
maximumSemObjects to avoid OOM, the default value is 1000000
default sem permit number, the default value is 10
execute function with specify semaphore instance
the key of semaphore
async runner
wrap a function with semaphore, the different parameter will use different semaphore instance
simply, it could be used as a deeply 'limit' function, after wrapping, the function will be limited by parameter values (by specific semaphore total count)
Static
wrapstatic 'wrap' creator for function
high level SemaphoreMap
Since
5.18.0