ConCache.try_isolated
You're seeing just the function
try_isolated
, go back to ConCache module for more information.
Specs
try_isolated(t(), key(), nil | pos_integer(), (-> any())) :: {:error, :locked} | {:ok, any()}
Similar to isolated/4
except it doesn't wait for the lock to be available.
If the lock can be acquired immediately, it will be acquired and the function will be invoked. Otherwise, an error is returned immediately.