Wraps a function with singleton behavior
This decorator ensures that only one instance of the function is running at a time. If the function is called again while a previous call is still pending, it returns the existing promise instead of making a new call.
Function to wrap with singleton behavior
Wrapped function with singleton behavior
Wraps a function with singleton behavior
This decorator ensures that only one instance of the function is running at a time. If the function is called again while a previous call is still pending, it returns the existing promise instead of making a new call.