TaskTimeout constructor
Implementation
TaskTimeout({
this.soft,
required this.hard,
this.onSoftTimeout,
}) {
if (soft != null && soft!.inMilliseconds >= hard.inMilliseconds) {
throw ArgumentError('Hard timeout must be greater than soft timeout');
}
}