Throttles the execution of an asynchronous operation and handles its result or errors
based on the given callback functions. The callId parameter is used to identify
the operation and avoid concurrent executions. The operation parameter is the
asynchronous operation to be throttled, and duration is the duration of the
throttling period.
Throttles a synchronous operation by preventing it from being executed more
frequently than the specified throttle duration, and executes a success
callback with the result of the operation.