I am currently at Chapter 9 / Presenting Data with Tables / Creating Table Views
Is there something like a race condition in
AppDelegate we create our
PodcastFeedParser, which immediately starts to parse the given URL in it’s
init(contentsOf url: URL).
After that, we set the
onParserFinished closure in
What if the parsing is fast enough to finish before the
onParserFinished closure was set?
Would it be safer if we extract the parsing in it’s own function, so we can start the parsing after the closure is set?