Mutex Map Implementation
to avoid OOM, the default value is 1000000
execute function with specify semaphore instance
the key of semaphore
async runner
get semaphore or create a new one
Optional
count: numberwrap 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
Mutex Map
Since
5.20.0