ConstThe type of the result that the promise resolves to.
A unique name for the mutex to ensure atomic execution.
A function that returns the promise to be executed.
An array of dependencies that will trigger the promise execution when changed.
Optionalconfig: UsePromiseConfig<TResult>Optional configuration for the promise execution.
An array containing the result of the promise, any error that occurred, and the state of the promise.
A custom hook that ensures a promise is executed atomically, using a mutex to prevent concurrent executions.