The type of the task result
The async task to execute
The timeout duration in milliseconds
Optionaloptions: CancellableOptions<T>Additional cancellable configuration options
A cancellable handle that resolves to the task result or rejects on timeout
Wraps an async task with a timeout. The task will be automatically cancelled if it doesn't complete within the specified duration.