Minor text fix, the UnreliableAPI is a singleton and the action function is an instance function, not a static. It was also missing the await.
Code should read :
try await UnreliableAPI.shared.action(failingEvery: 10)
Minor text fix, the UnreliableAPI is a singleton and the action function is an instance function, not a static. It was also missing the await.
Code should read :
try await UnreliableAPI.shared.action(failingEvery: 10)
Hi Peter, could you be more specific in what version of the book are you using and where is the code that you refer to located?
Hello @icanzilb Marin. Seems like I may have been reading an old version, latest version from RayWenderlich site has this fixed in the Epub.
Can close this.