createChildAbortController function
Create a child abort controller that fires when the parent fires.
Implementation
AbortController createChildAbortController(AbortController parent) {
final child = AbortController();
parent.onAbort.listen((reason) {
child.abort(reason);
});
return child;
}